function search_is_active

search_is_active()

Determines access for the ?q=search path.

File

modules/search/search.module, line 235
Enables site-wide keyword searching.

Code

function search_is_active() {
  // This path cannot be accessed if there are no active modules.
  return user_access('search content') && search_get_info();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!search!search.module/function/search_is_active/7.x