You are here

function custom_search_admin in Custom Search 7

Same name and namespace in other branches
  1. 6 custom_search.admin.inc \custom_search_admin()

General settings.

3 string references to 'custom_search_admin'
custom_search_i18n_form_alter in modules/custom_search_i18n/custom_search_i18n.module
Implements hook_form_alter().
custom_search_menu in ./custom_search.module
Implements hook_menu().
custom_search_taxonomy_form_alter in modules/custom_search_taxonomy/custom_search_taxonomy.module
Implements hook_form_alter().

File

./custom_search.admin.inc, line 11
Admin settings for custom search

Code

function custom_search_admin() {

  // Basic settings.
  $form = _custom_search_default_admin_form();

  // Custom search paths.
  $form = array_merge($form, _custom_search_custom_paths_admin_form());

  // Ordering.
  $form = array_merge($form, _custom_search_ordering_admin_form());
  $form['#attributes'] = array(
    'enctype' => 'multipart/form-data',
  );
  $form['#submit'][] = 'custom_search_admin_submit';
  return system_settings_form($form);
}