All pastes #263156 Raw Edit

Someone

public text v1 · immutable
·published 2006-12-01 06:07 UTC
rendered paste body
/**
 * Theme taxonomy/term/N 
 * Code generated from the views module
 */
function phptemplate_views_view_list_taxonomy_term($view, $nodes, $type) {
  $fields = _views_get_fields();

  $taken = array();

  // Set up the fields in nicely named chunks.
  foreach ($view->field as $id => $field) {
    $field_name = $field['field'];
    if (isset($taken[$field_name])) {
      $field_name = $field['queryname'];
    }
    $taken[$field_name] = true;
    $field_names[$id] = $field_name;
  }
  
  $videos = array();
  foreach ($nodes as $i => $node) {
    $videos[] = musicbox_theme_get_video($node->nid);
  }  
  $title = drupal_get_title();
  drupal_set_title('VIDEOS TAGGED “'. $title .'”');
  
  $vars['videos'] = musicbox_theme_artist_videos($videos, TRUE);
  $vars['ad_right'] = theme('blocks', 'ad_right');
  
  return _phptemplate_callback('page-tags', $vars); 

  // or return '<p>mywidget</p>';
}