function power_menu_schema in Power Menu 7.2
Same name and namespace in other branches
- 6 power_menu.install \power_menu_schema()
- 7 power_menu.install \power_menu_schema()
Implements hook_schema().
1 call to power_menu_schema()
- power_menu_update_7200 in ./
power_menu.install - Update version 6.x and 7.1 to 7.2 and migrate existing data to the new structure.
File
- ./
power_menu.install, line 38 - just containing the stuff for install and uninstall
Code
function power_menu_schema() {
// Add a cache table for power menu
$schema['cache_power_menu'] = drupal_get_schema_unprocessed('system', 'cache');
$schema['power_menu_fields'] = array(
'fields' => array(
'id' => array(
'description' => 'The primary identifier.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'menu_name' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
'description' => 'The unique key for menu. This is used as a block delta so length is 32.',
),
'mlid' => array(
'description' => 'The menu link id',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'primary key' => array(
'id',
),
'indexes' => array(
'menu_name_mlid' => array(
'menu_name',
'mlid',
),
),
);
return $schema;
}