You are here

function nodehierarchy_menu_schema in Node Hierarchy 7.4

Implements hook_schema().

File

nodehierarchy_menu/nodehierarchy_menu.install, line 24
Install file for nodehierarchy_menu module.

Code

function nodehierarchy_menu_schema() {
  $schema['nodehierarchy_menu_links'] = array(
    'fields' => array(
      'mlid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => "The book page's {menu_links}.mlid.",
      ),
      'nid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => 'The {node}.nid whose parent is being defined.',
      ),
    ),
    'primary key' => array(
      'mlid',
    ),
    'indexes' => array(
      'nid' => array(
        'nid',
      ),
    ),
  );
  return $schema;
}