function taxonomy_display_schema in Taxonomy display 7
Implements hook_schema().
File
- ./
taxonomy_display.install, line 37 - Install, update and uninstall functions for the taxonomy display module.
Code
function taxonomy_display_schema() {
$schema['taxonomy_display'] = array(
'description' => 'Per vocabulary configuration for term pages.',
// CTools export definitions.
'export' => array(
'key' => 'machine_name',
'primary key' => 'machine_name',
'default hook' => 'taxonomy_display_default_displays',
'load callback' => 'taxonomy_display_fetch_taxonomy_display',
'can disable' => FALSE,
'api' => array(
'owner' => 'taxonomy_display',
'api' => 'taxonomy_display',
'minimum_version' => 1,
'current_version' => 1,
),
),
'fields' => array(
'machine_name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'The vocabulary machine name.',
),
'term_display_plugin' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'The plugin used to display the term.',
),
'term_display_options' => array(
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
'serialize' => TRUE,
'description' => 'The plugin data for the term display.',
),
'associated_display_plugin' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'The plugin used to display the associated content.',
),
'associated_display_options' => array(
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
'serialize' => TRUE,
'description' => 'The plugin data for the associated content display.',
),
'add_feed' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'tiny',
'default' => 1,
'description' => 'Whether to add Drupal\'s core feed.',
),
'breadcrumb_display_plugin' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'The plugin used to display the breadcrumb.',
),
'breadcrumb_display_options' => array(
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
'serialize' => TRUE,
'description' => 'The plugin data for the breadcrumb display.',
),
),
'primary key' => array(
'machine_name',
),
);
return $schema;
}