You are here

function custom_search_blocks_forms in Custom Search 7

Same name and namespace in other branches
  1. 6 modules/custom_search_blocks/custom_search_blocks.module \custom_search_blocks_forms()

Implements hook_forms().

File

modules/custom_search_blocks/custom_search_blocks.module, line 115
Bring additional search blocks

Code

function custom_search_blocks_forms($form_id, $args) {
  $forms = array();
  for ($a = 1; $a <= variable_get('custom_search_blocks_number', 1); $a++) {
    $forms['custom_search_blocks_form_' . $a] = array(
      'callback' => 'custom_search_blocks_form',
      'callback arguments' => array(
        $a,
      ),
    );
  }
  return $forms;
}