You are here

function advanced_menu_menu_admin_schema in Advanced Menu 6.x

Same name and namespace in other branches
  1. 7 menu_admin/advanced_menu_menu_admin.install \advanced_menu_menu_admin_schema()

Implementation of hook_schema().

File

menu_admin/advanced_menu_menu_admin.install, line 24

Code

function advanced_menu_menu_admin_schema() {
  $schema['advanced_menu_menu_admin_roles'] = array(
    'description' => t('Holds permission data for menus'),
    'fields' => array(
      'aid' => array(
        'type' => 'serial',
        'not null' => TRUE,
        'description' => t('Primary Key: Unique access ID.'),
      ),
      'menu_name' => array(
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'default' => '',
        'description' => t('The {menu_custom}.menu_name of the menu.'),
      ),
      'rid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => t('The {role}.rid to which the permissions are assigned.'),
      ),
    ),
    'primary key' => array(
      'aid',
    ),
  );
  return $schema;
}