function custom_breadcrumbs_taxonomy_schema in Custom Breadcrumbs 7.2
Same name and namespace in other branches
- 6.2 custom_breadcrumbs_taxonomy/custom_breadcrumbs_taxonomy.install \custom_breadcrumbs_taxonomy_schema()
Implements hook_schema().
File
- custom_breadcrumbs_taxonomy/
custom_breadcrumbs_taxonomy.install, line 102 - Install file for the custom_breadcrumbs_taxonomy module.
Code
function custom_breadcrumbs_taxonomy_schema() {
$schema['custom_breadcrumbs_taxonomy_term'] = array(
'description' => 'Stores custom breadcrumbs for taxonomy terms',
'fields' => array(
'bid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Unique identifier for the {custom_breadcrumbs_taxonomy} breadcrumbs.',
),
'name' => array(
'type' => 'varchar',
'length' => 128,
'not null' => FALSE,
'description' => 'An optional name for the custom breadcrumb.',
),
'titles' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'A title for the breadcrumb link.',
),
'paths' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'description' => 'A path for the breadcrumb link.',
),
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'The taxonomy term id for this breadcrumb.',
),
'visibility_php' => array(
'type' => 'text',
'not null' => TRUE,
'size' => 'medium',
'description' => 'An optional PHP snippet to control the {custom_breadcrumbs_views} visibility.',
),
'language' => array(
'type' => 'varchar',
'length' => 12,
'not null' => TRUE,
'default' => '',
'description' => 'The language this breadcrumb is for; if blank, the breadcrumb will be used for unknown languages.',
),
),
'indexes' => array(
'language' => array(
'language',
),
'tid_language' => array(
'tid',
'language',
),
),
'primary key' => array(
'bid',
),
);
$schema['custom_breadcrumbs_taxonomy_vocabulary'] = array(
'description' => 'Stores custom breadcrumbs for taxonomy vocabularies',
'fields' => array(
'bid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Unique identifier for the {custom_breadcrumbs_taxonomy} breadcrumbs.',
),
'name' => array(
'type' => 'varchar',
'length' => 128,
'not null' => FALSE,
'description' => 'An optional name for the custom breadcrumb.',
),
'titles' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'A titles for the breadcrumb link.',
),
'paths' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'description' => 'A paths for the breadcrumb link.',
),
'vid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'The taxonomy vocabulary id for this breadcrumb.',
),
'visibility_php' => array(
'type' => 'text',
'not null' => TRUE,
'size' => 'medium',
'description' => 'An optional PHP snippet to control the {custom_breadcrumbs_views} visibility.',
),
'language' => array(
'type' => 'varchar',
'length' => 12,
'not null' => TRUE,
'default' => '',
'description' => 'The language this breadcrumb is for; if blank, the breadcrumb will be used for unknown languages.',
),
),
'indexes' => array(
'language' => array(
'language',
),
'vid_language' => array(
'vid',
'language',
),
),
'primary key' => array(
'bid',
),
);
return $schema;
}