You are here

function apachesolr_search_page_exists in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 apachesolr_search.module \apachesolr_search_page_exists()
  2. 6.3 apachesolr_search.module \apachesolr_search_page_exists()

Returns whether a search page exists.

1 string reference to 'apachesolr_search_page_exists'
apachesolr_search_page_settings_form in ./apachesolr_search.admin.inc
Menu callback/form-builder for the form to create or edit a search page.

File

./apachesolr_search.module, line 1495
Provides a content search implementation for node content for use with the Apache Solr search application.

Code

function apachesolr_search_page_exists($search_page_id) {
  return db_query('SELECT 1 FROM {apachesolr_search_page} WHERE page_id = :page_id', array(
    ':page_id' => $search_page_id,
  ))
    ->fetchField();
}