function taxonomy_facets_add_block_form in Taxonomy Facets 7.2
Same name and namespace in other branches
- 7.3 taxonomy_facets.module \taxonomy_facets_add_block_form()
Menu callback: display the taxo faceted block addition form.
See also
taxonomy_facets_add_block_form_submit()
1 string reference to 'taxonomy_facets_add_block_form'
- taxonomy_facets_menu in ./
taxonomy_facets.module - Implements hook_menu().
File
- ./
taxonomy_facets.module, line 62 - Taxo Faceted Navigation module code.
Code
function taxonomy_facets_add_block_form($form, &$form_state) {
module_load_include('inc', 'block', 'block.admin');
$form = block_admin_configure($form, $form_state, 'taxonomy_facets', NULL);
// Other modules should be able to use hook_form_block_add_block_form_alter()
// to modify this form, so add a base form ID.
$form_state['build_info']['base_form_id'] = 'block_add_block_form';
// Prevent block_add_block_form_validate/submit() from being automatically
// added because of the base form ID by providing these handlers manually.
$form['#validate'] = array();
$form['#submit'] = array(
'taxonomy_facets_add_block_form_submit',
);
return $form;
}