1.20.x search.module search_is_active()

Determines access for the ?q=search path.

File

modules/search/search.module, line 294
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();
}