/[drupal]/contributions/modules/syndication/syndication.module
ViewVC logotype

Diff of /contributions/modules/syndication/syndication.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.58.2.9, Fri Apr 3 23:41:14 2009 UTC revision 1.58.2.10, Thu Apr 9 06:10:07 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: syndication.module,v 1.58.2.8 2009/03/23 19:56:01 aaron1234nz Exp $  // $Id: syndication.module,v 1.58.2.9 2009/04/03 23:41:14 aaron1234nz Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 197  function syndication_vocabularies() { Line 197  function syndication_vocabularies() {
197      $items = syndication_taxonomy_build_list_items($index = 0, $tree);      $items = syndication_taxonomy_build_list_items($index = 0, $tree);
198      if ($items) {      if ($items) {
199        $col_num = $vocab_number % $syndication_columns;        $col_num = $vocab_number % $syndication_columns;
200        $columns[$col_num] .= theme('item_list', $items, $vocab->name);        $columns[$col_num] .= theme('item_list', $items, t($vocab->name));
201        $vocab_number++;        $vocab_number++;
202      }      }
203    }    }
# Line 225  function syndication_taxonomy_build_list Line 225  function syndication_taxonomy_build_list
225        else {        else {
226          $term_path = "taxonomy/term/{$term->tid}/0/feed";          $term_path = "taxonomy/term/{$term->tid}/0/feed";
227        }        }
228        $term_link = l($term->name, $term_path, array('title' => $term->description));        $term_link = l(t($term->name), $term_path, array('title' => $term->description));
229        if ($term->depth) {        if ($term->depth) {
230          $prefix = str_repeat('--', $term->depth) .' ';          $prefix = str_repeat('--', $term->depth) .' ';
231        }        }
# Line 264  function syndication_taxonomy_builder() Line 264  function syndication_taxonomy_builder()
264        $current_depth = $tree[$index]->depth;        $current_depth = $tree[$index]->depth;
265        $form['categories'][$vocab->name] = array(        $form['categories'][$vocab->name] = array(
266          '#type' => 'fieldset',          '#type' => 'fieldset',
267          '#title' => $vocab->name,          '#title' => t($vocab->name),
268          '#collapsible' => TRUE,          '#collapsible' => TRUE,
269          '#collapsed' => FALSE,          '#collapsed' => FALSE,
270        );        );
# Line 272  function syndication_taxonomy_builder() Line 272  function syndication_taxonomy_builder()
272          $term = $tree[$index];          $term = $tree[$index];
273          $count = taxonomy_term_count_nodes($term->tid);          $count = taxonomy_term_count_nodes($term->tid);
274          if ($count || $show_unused_terms) {          if ($count || $show_unused_terms) {
275            $options[$term->tid] = $term->name;            $options[$term->tid] = t($term->name);
276            $index++;            $index++;
277          }          }
278          else {          else {
# Line 439  function syndication_admin_settings() { Line 439  function syndication_admin_settings() {
439    //taxonomy    //taxonomy
440    if (module_exists('taxonomy'))  {    if (module_exists('taxonomy'))  {
441      foreach (taxonomy_get_vocabularies() as $vid => $vocab) {      foreach (taxonomy_get_vocabularies() as $vid => $vocab) {
442        $options[$vid] = $vocab->name;        $options[$vid] = t($vocab->name);
443      }      }
444      $form['syndication_vocabularies'] = array(      $form['syndication_vocabularies'] = array(
445        '#type' => 'checkboxes',        '#type' => 'checkboxes',
# Line 461  function syndication_admin_settings() { Line 461  function syndication_admin_settings() {
461      $options = array();      $options = array();
462      $views = _syndication_return_views_rss_feeds();      $views = _syndication_return_views_rss_feeds();
463      foreach ($views  as $view) {      foreach ($views  as $view) {
464        $options[$view->name] = $view->display_title;        $options[$view->name] = t($view->display_title);
465      }      }
466      $form['syndication_views'] = array(      $form['syndication_views'] = array(
467        '#type' => 'checkboxes',        '#type' => 'checkboxes',

Legend:
Removed from v.1.58.2.9  
changed lines
  Added in v.1.58.2.10

  ViewVC Help
Powered by ViewVC 1.1.2