views

Fix for Argument handling code for a view taking in TID as argument, trying to get the parent TID to be returned (if it has)

  1. // note that this only gets the immediate parent
  2. if ($args[0]){
  3.         $parents = taxonomy_get_parents($args[0]);
  4.         if ($parents) {
  5.                 foreach ($parents as $parent) {
  6.                 $parentID = $parent->tid;

cck variables get printed as null in Drupal 5 view

  1. //in template.php----------------------------
  2.  
  3.  
  4. function phptemplate_views_view_list_promotion_box($view, $nodes, $type) {
  5.   /*
  6.   $fields = _views_get_fields();
  7.  

Inserting a nodereference field into a view.

  1.  // Add the nodereference field if it's not present.
  2.   $nodereference_table = content_views_tablename($nodereference_field);

Fix for views_ajax show thumbnail

  1. function theme_views_ajax_page_item($node) {
  2.   $file=next($node->files);
  3. //  return l(theme('image', $file->filepath, NULL, NULL, array('border' => 0)), $path, NULL, NULL, NULL, NULL, TRUE);

Fix for views_ajax show thumbnail

  1. function theme_views_ajax_page_item($node) {
  2.   $file=current($node->files);
  3. //  return l(theme('image', $file->filepath, NULL, NULL, array('border' => 0)), $path, NULL, NULL, NULL, NULL, TRUE);

Fix for views_ajax show thumbnail

  1. function theme_views_ajax_page_item($node) {
  2.   $file=current($node->files);
  3.   return l(theme('image', $file->filepath, NULL, NULL, array('border' => 0)), $path, NULL, NULL, NULL, NULL, TRUE);
  4. }

views_ajax show thumbnail

  1. function theme_views_ajax_page_item($node) {
  2.   $file=current($node->files);
  3.   l(theme('image', $file->filepath, NULL, NULL, array('border' => 0)), $path, NULL, NULL, NULL, NULL, TRUE);
  4. }

views_json style plugin

  1. /**
  2.  *  Implementation of hook_views_plugins
  3.  */
  4. function views_json_views_plugins() {
  5.   return array(
  6.     'style' => array(
  7.       'views_json' => array(

Code

  1. /**
  2.  * Implementation of hook_requirements().
  3.  */
  4. function hs_views_taxonomy_requirements($phase) {
  5.   $requirements = array();
  6.  
  7.   if ($phase == 'runtime') {
  8.     $pattern = <<<EOT
Syndicate content