/[drupal]/contributions/modules/taxonomy_hide/taxonomy_hide.admin.inc
ViewVC logotype

Diff of /contributions/modules/taxonomy_hide/taxonomy_hide.admin.inc

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

revision 1.1.2.2, Mon Oct 27 14:32:21 2008 UTC revision 1.1.2.3, Mon Oct 27 15:07:50 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: taxonomy_hide.admin.inc,v 1.1.2.1 2008/05/11 04:38:51 brmassa Exp $  // $Id: taxonomy_hide.admin.inc,v 1.1.2.2 2008/10/27 14:32:21 brmassa Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 38  function _taxonomy_hide_admin_settings() Line 38  function _taxonomy_hide_admin_settings()
38      '#title'          => t('Hide vocabularies'),      '#title'          => t('Hide vocabularies'),
39      '#default_value'  => array_keys(array_filter(variable_get('taxonomy_hide_vocabularies', array()))),      '#default_value'  => array_keys(array_filter(variable_get('taxonomy_hide_vocabularies', array()))),
40      '#options'        => $select,      '#options'        => $select,
41      '#description'    => t('Select the vocabularies whose terms should disappear from node views'),      '#description'    => t('Choose the vocabularies whose terms should disappear from node views'),
42      '#multiple'       => true,      '#multiple'       => TRUE,
43    );    );
44    
45    
# Line 60  function _taxonomy_hide_admin_settings() Line 60  function _taxonomy_hide_admin_settings()
60        foreach ($vocabularies as $vocabulary) {        foreach ($vocabularies as $vocabulary) {
61          $select[$vocabulary->vid] = $vocabulary->name;          $select[$vocabulary->vid] = $vocabulary->name;
62        }        }
63        $form['node_types']['taxonomy_hide_vocabularies_'.$type->type] = array(        $form['node_types']['taxonomy_hide_vocabularies_'. $type->type] = array(
64          '#default_value'  => array_keys(array_filter(variable_get('taxonomy_hide_vocabularies_'.$type->type, array()))),          '#default_value'  => array_keys(array_filter(variable_get('taxonomy_hide_vocabularies_'. $type->type, array()))),
65          '#options'        => $select,          '#options'        => $select,
66          '#type'           => 'checkboxes',          '#type'           => 'checkboxes',
67          '#title'          => t('Hide vocabularies for '.$type->name),          '#title'          => t('Hide vocabularies for @type', array('@type' => $type->name)),
68        );        );
69      }      }
70    }    }

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

  ViewVC Help
Powered by ViewVC 1.1.2