search_is_active

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 search_is_active()

Determines access for the ?q=search path.

Code

modules/search/search.module, line 235

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