function menu_token_schema in Menu Token 7
Same name and namespace in other branches
- 6 menu_token.install \menu_token_schema()
Implements hook_schema().
File
- ./
menu_token.install, line 11 - Install file for menu_token module.
Code
function menu_token_schema() {
$schema['menu_token'] = array(
'description' => t('Menu token properties'),
'fields' => array(
'mlid' => array(
'description' => t('The menu link {menu_links}.mlid'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'link_path' => array(
'description' => t('The actual path with tokens'),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
),
'primary key' => array(
'mlid',
),
);
return $schema;
}