You are here

function search_by_page_search_admin in Search by Page 8

Same name and namespace in other branches
  1. 7 search_by_page.module \search_by_page_search_admin()

Implements hook_search_admin().

Adds a link to the Search by Page settings form.

File

./search_by_page.module, line 407
Main module file for Drupal module Search by Page.

Code

function search_by_page_search_admin() {
  $form = [];
  $form['search_by_page'] = [
    '#type' => 'fieldset',
    '#title' => t('Search by Page settings'),
  ];
  $form['search_by_page']['info'] = [
    '#type' => 'markup',
    '#markup' => '<p>' . l(t('Configure Search by Page settings'), 'admin/config/search/search_by_page') . '</p>',
  ];
  $form['search_by_page']['status'] = _search_by_page_status_details();
  return $form;
}