| 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. |
| 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( |