| 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 |
| 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 |
|
|
| 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 |
} |
} |