drupal

Some code to search flickr for images

  1. function _optotrip_block_flickr() {
  2.   $termtext = _optotrip_get_block_context();
  3.   if ($termtext == '') {
  4.     return NULL;
  5.   }
  6.  
  7.   $starttime = microtime(TRUE);
  8.  
  9.   lightbox2_add_files();

remove blog link

  1. function phptemplate_links($links, $attributes = array()) {
  2.     unset($links['blog_usernames_blog']);
  3.     return theme_links($links, $attributes);
  4. }

juery

  1. /**
  2.  * @author dereine
  3.  */
  4. $(document).ready(function() {
  5.         $('form#contact-mail-page').submit(function () {               
  6.                 if ($('form#contact-mail-page input#edit-name').val() == "") {

drupal amfphp helper class

  1. package {
  2.        
  3.         import flash.net.Responder;
  4.        
  5.         /*
  6.          * Drupal class for AMFPHP connections to Drupal services
  7.          */
  8.         public class Drupal {
  9.                
  10.                 public var gatewayUrl:String = "";

Fix for theme_view()

  1. <?php
  2. function theme_view($view_name, $limit = NULL, $use_pager = NULL, $type = 'embed', $view_args = array()) {
  3.   if ($view = views_get_view($view_name)) {

Fix for theme_view()

  1. function theme_view($view_name, $limit = NULL, $use_pager = NULL, $type = 'embed', $view_args = array()) {
  2.   if ($view = views_get_view($view_name)) {

Fix for theme_view()

  1. function theme_view($view_name, $limit = NULL, $use_pager = NULL, $type = 'embed', $view_args = array()) {
  2.   if ($view = views_get_view($view_name)) {

theme_view()

  1. /**
  2.  * Returns a themed view.
  3.  * @param $view_name
  4.  *    The name of the view.
  5.  * @param $limit
  6.  *   Maximum number of nodes displayed on one page. if $limit is set and $use_pager is
  7.  

Trying to get summary in teaser

  1. <a href="?q=node/<?php print $node->vid ?>" title="<?php print check_plain($node->title) ?>"><?php print check_plain($node->title) ?></a>
  2. <br/>

geshifilter.inc

  1. <?php
  2. // $Id: geshifilter.inc,v 1.2 2008/01/18 17:36:43 soxofaan Exp $
  3.  
  4. function _geshifilter_get_geshi_dir() {
Syndicate content