function nodesymlinks_schema in NodeSymlinks 7
Same name and namespace in other branches
- 6 nodesymlinks.install \nodesymlinks_schema()
Implements hook_schema().
File
- ./
nodesymlinks.install, line 43 - Installation functions for NodeSymlinks.
Code
function nodesymlinks_schema() {
$schema = array();
$schema['nodesymlinks_link_storage'] = array(
'description' => 'Permanent storage for nodesymlinks while it exists in installed apps. Since menu_links are not permanent, we need to have a backing store so they can be regenerated during module re-enable.',
'fields' => array(
'mlid' => array(
'description' => 'The menu link ID (mlid) is the integer primary key.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'nid' => array(
'description' => 'The original Node ID this link pointed to.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'item_data' => array(
'description' => 'The serialized item data structure that was/should be passed to menu_link_save.',
'type' => 'text',
'not null' => TRUE,
),
),
'primary key' => array(
'mlid',
),
);
return $schema;
}