function taxonomy_facets_configure_form in Taxonomy Facets 7.3
Same name and namespace in other branches
- 7.2 taxonomy_facets.module \taxonomy_facets_configure_form()
Returns the configuration form.
Parameters
array $form_state: array An associated array of configuration options should be present in the 'values' key. If none are given, default configuration is assumed.
Return value
array The form in Form API format.
1 call to taxonomy_facets_configure_form()
- taxonomy_facets_block_configure in ./
taxonomy_facets.module - Implements hook_block_configure().
File
- ./
taxonomy_facets.module, line 97
Code
function taxonomy_facets_configure_form($form, array &$form_state) {
$taxonomies = taxonomy_get_vocabularies();
$vocabs = array();
foreach ($taxonomies as $taxonomy) {
$vocabs[$taxonomy->vid] = $taxonomy->name;
}
$form['vid'] = array(
'#type' => 'select',
'#title' => t('Taxonomy'),
'#options' => $vocabs,
'#default_value' => $form_state['vid'],
'#description' => t('Select Vocabulary.'),
);
return $form;
}