/[drupal]/contributions/modules/taxonomy_block/taxonomy_block.settings.inc
ViewVC logotype

Diff of /contributions/modules/taxonomy_block/taxonomy_block.settings.inc

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

revision 1.4, Wed Nov 11 09:25:16 2009 UTC revision 1.5, Wed Nov 11 10:19:10 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: taxonomy_block.settings.inc,v 1.3 2009/08/14 02:56:43 thenicespider Exp $  // $Id: taxonomy_block.settings.inc,v 1.4 2009/11/11 09:25:16 thenicespider Exp $
3  /**  /**
4   * @file   * @file
5   * Settings page callback file for the taxonomy_block module.   * Settings page callback file for the taxonomy_block module.
# Line 21  function taxonomy_block_admin_settings() Line 21  function taxonomy_block_admin_settings()
21      '#collapsible' => TRUE,      '#collapsible' => TRUE,
22      '#collapsed' => FALSE      '#collapsed' => FALSE
23    );    );
24    
25      $vocabs = db_query("SELECT vid, name from {vocabulary} order by name");
26      $vocab_array = array();
27      while ($term_parent = db_fetch_object($vocabs)) {
28         $vocab_array[$term_parent->vid] = $term_parent->name;
29      }
30    
31    $form['taxonomy_block_settings']['taxonomy_block_settings_vid'] = array(    $form['taxonomy_block_settings']['taxonomy_block_settings_vid'] = array(
32      '#type' => 'textfield',      '#type' => 'select',
33      '#title' => t("Vocabulary ID"),      // '#size' => 3,
34        '#title' => t("Select a Vocabulary"),
35      '#default_value' => variable_get('taxonomy_block_settings_vid', 1),      '#default_value' => variable_get('taxonomy_block_settings_vid', 1),
36      '#description' => t("Enter Vocabulary ID for used by taxonomy block.")      '#description' => t("Select Vocabulary for used by taxonomy block."),
37        '#options' => $vocab_array
38    );    );
39    
40    $form['taxonomy_block_settings']['taxonomy_block_settings_max_term'] = array(    $form['taxonomy_block_settings']['taxonomy_block_settings_max_term'] = array(

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.2