function views_url_alias_node_schema in Views URL alias 8
Same name and namespace in other branches
- 6 views_url_alias_node.install \views_url_alias_node_schema()
- 7 views_url_alias_node.install \views_url_alias_node_schema()
Implements hook_schema().
File
- ./
views_url_alias_node.install, line 21 - Installation information for the Views URL alias (node) module.
Code
function views_url_alias_node_schema() {
return array(
'views_url_alias_node' => array(
'description' => t("A second url alias table for only node aliases used by views."),
'fields' => array(
'nid' => array(
'description' => 'The related {node}.nid for the url alias.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'alias' => array(
'description' => 'The alias for this path; e.g. title-of-the-story.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
),
'index' => array(
'nid' => array(
'nid',
),
'nid_alias' => array(
'nid',
'alias',
),
),
'foreign keys' => array(
'nid' => array(
'table' => 'node',
'columns' => array(
'nid' => 'nid',
),
),
),
),
);
}