function apachesolr_search_schema in Apache Solr Search 8
Same name and namespace in other branches
- 6.3 apachesolr_search.install \apachesolr_search_schema()
- 7 apachesolr_search.install \apachesolr_search_schema()
Implements hook_schema().
File
- ./
apachesolr_search.install, line 75 - Install and related hooks for apachesolr_search.
Code
function apachesolr_search_schema() {
$schema = array();
$schema['apachesolr_search_page'] = array(
'description' => 'Apache Solr Search search page settings.',
'export' => array(
// Environment machine name.
'key' => 'page_id',
// Description of key.
'key name' => 'search page machine name',
// Variable name to use in exported code.
'identifier' => 'searcher',
// Use the same hook as the API name below.
'default hook' => 'apachesolr_search_default_searchers',
'status' => 'apachesolr_search_page_status',
// CTools API implementation.
'api' => array(
'owner' => 'apachesolr_search',
'api' => 'apachesolr_search_defaults',
'minimum_version' => 3,
'current_version' => 3,
),
),
'fields' => array(
'page_id' => array(
'description' => 'The machine readable name of the search page.',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
),
'label' => array(
'description' => 'The human readable name of the search page.',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
),
'description' => array(
'description' => 'The description of the search page.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'search_path' => array(
'description' => 'The path to the search page.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'page_title' => array(
'description' => 'The title of the search page.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'env_id' => array(
'description' => 'The machine name of the search environment.',
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
),
'settings' => array(
'description' => 'Serialized storage of general settings.',
'type' => 'text',
'serialize' => TRUE,
),
),
'primary key' => array(
'page_id',
),
'indexes' => array(
'env_id' => array(
'env_id',
),
),
);
return $schema;
}