function custom_breadcrumbs_schema in Custom Breadcrumbs 7.2
Same name and namespace in other branches
- 6.2 custom_breadcrumbs.install \custom_breadcrumbs_schema()
- 6 custom_breadcrumbs.install \custom_breadcrumbs_schema()
- 7 custom_breadcrumbs.install \custom_breadcrumbs_schema()
Implements hook_schema().
File
- ./
custom_breadcrumbs.install, line 11 - Install file for the custom_breadcrumbs module.
Code
function custom_breadcrumbs_schema() {
$schema['custom_breadcrumb'] = array(
'description' => 'Stores custom breadcrumb trail overrides.',
'fields' => array(
'bid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Unique identifier for the {custom_breadcrumb}.',
),
'name' => array(
'type' => 'varchar',
'length' => 128,
'not null' => FALSE,
'description' => 'An optional name for the custom breadcrumb.',
),
'titles' => array(
'type' => 'text',
'size' => 'medium',
'not null' => TRUE,
'description' => 'A return-delimited list of titles for the breadcrumb links.',
),
'paths' => array(
'type' => 'text',
'size' => 'medium',
'not null' => TRUE,
'description' => 'A return-delimited list of url paths for the breadcrumb links.',
),
'visibility_php' => array(
'type' => 'text',
'not null' => TRUE,
'size' => 'medium',
'description' => 'An optional PHP snippet to control the {custom_breadcrumb} visibility.',
),
'node_type' => array(
'type' => 'varchar',
'length' => 64,
'not null' => FALSE,
'default' => 'AND',
'description' => 'Node types the {custom_breadcrumb} should apply to.',
),
'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',
),
'node_language' => array(
'node_type',
'language',
),
),
'primary key' => array(
'bid',
),
);
return $schema;
}