function search_api_page_search_api_page_enable in Search API Pages 7
Enables or disables the page from the UI.
1 string reference to 'search_api_page_search_api_page_enable'
- search_api_page_search_api_page_build_subtask in plugins/
tasks/ search_api_page.inc - Builds a subtask array for a given search page.
File
- plugins/
tasks/ search_api_page.inc, line 151 - Handles the 'search api page' override task.
Code
function search_api_page_search_api_page_enable($cache, $status) {
variable_set('search_api_page_search_api_page_disabled_' . $cache->subtask_id, $status);
// Set a global flag so that the menu routine knows it needs
// to set a message if enabling cannot be done.
if (!$status) {
$GLOBALS['search_api_page_enabling_search_api_page'] = TRUE;
}
}