function search_is_active

Determines access for the ?q=search path.

1 string reference to 'search_is_active'
search_menu in modules/search/search.module
Implements hook_menu().

File

modules/search/search.module, line 235

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.