You are here

function og_menu_schema in Organic Groups Menu (OG Menu) 6

Same name and namespace in other branches
  1. 6.2 og_menu.install \og_menu_schema()
  2. 7.3 og_menu.install \og_menu_schema()
  3. 7.2 og_menu.install \og_menu_schema()

Implementation of hook_schema()

File

./og_menu.install, line 6

Code

function og_menu_schema() {
  $schema['og_menu'] = array(
    'fields' => array(
      'gid' => array(
        'type' => 'int',
        'not null' => TRUE,
      ),
      'menu_name' => array(
        'type' => 'varchar',
        'length' => 128,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'gid',
      'menu_name',
    ),
  );
  return $schema;
}