function spaces_taxonomy_settings in Spaces 6
Same name and namespace in other branches
- 6.3 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_settings()
- 6.2 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_settings()
- 7.3 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_settings()
- 7 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_settings()
Spaces Taxonomy settings form.
1 string reference to 'spaces_taxonomy_settings'
- spaces_taxonomy_menu in spaces_taxonomy/
spaces_taxonomy.module - Implementation of hook_menu().
File
- spaces_taxonomy/
spaces_taxonomy.module, line 284
Code
function spaces_taxonomy_settings(&$form_state) {
$form = array();
// Collect an array of valid vocab options
$vocabs = array(
0 => '---',
);
foreach (taxonomy_get_vocabularies() as $vocab) {
// Vocab may not be multiple
if (!$vocab->multiple && !$vocab->tags) {
$vocabs[$vocab->vid] = $vocab->name;
}
}
$form['spaces_taxonomy_vid'] = array(
'#type' => 'select',
'#title' => t('Spaces vocabulary'),
'#description' => t('Choose one of the following vocabularies to enable for use with Spaces.'),
'#options' => $vocabs,
'#default_value' => variable_get('spaces_taxonomy_vid', 0),
);
$form = system_settings_form($form);
return $form;
}