You are here

function taxo_faceted_navigation_add_block_form in Taxonomy Facets 7

Menu callback: display the taxo faceted block addition form.

See also

taxo_faceted_navigation_add_block_form_submit()

1 string reference to 'taxo_faceted_navigation_add_block_form'
taxo_faceted_navigation_menu in ./taxo_faceted_navigation.module
Implements hook_menu().

File

./taxo_faceted_navigation.module, line 62
Taxo Faceted Navigation module code.

Code

function taxo_faceted_navigation_add_block_form($form, &$form_state) {
  module_load_include('inc', 'block', 'block.admin');
  $form = block_admin_configure($form, $form_state, 'taxo_faceted_navigation', 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(
    'taxo_faceted_navigation_add_block_form_submit',
  );
  return $form;
}