function taxo_faceted_navigation_configure_form in Taxonomy Facets 7
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 taxo_faceted_navigation_configure_form()
File
- ./
taxo_faceted_navigation.module, line 97 - Taxo Faceted Navigation module code.
Code
function taxo_faceted_navigation_configure_form($form, &$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;
}