function search_config_schema in Search configuration 7
Same name and namespace in other branches
- 8 search_config.install \search_config_schema()
Implements hook_schema().
Note that the schema is more generic than the actual implementation at the moment. This may be extended to other search indexes.
File
- ./
search_config.install, line 14 - Install, update and uninstall functions for the Search Configuration module.
Code
function search_config_schema() {
$schema['search_config_exclude'] = array(
'description' => 'Provides a way to exclude specific entities from the search results. Note that this does not stop the entities from being indexed.',
'fields' => array(
'entity_id' => array(
'description' => 'The {node}.nid to exclude.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'entity_type' => array(
'description' => 'The entity type to exclude.',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
),
'exclude' => array(
'description' => 'Exclusion flag. Default 1: exclude from public searches.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 1,
'size' => 'tiny',
),
),
'primary key' => array(
'entity_id',
'entity_type',
),
);
return $schema;
}