You are here

function advanced_menu_menu_attributes_schema in Advanced Menu 6.x

Same name and namespace in other branches
  1. 7 menu_attributes/advanced_menu_menu_attributes.install \advanced_menu_menu_attributes_schema()

Implementation of hook_schema().

File

menu_attributes/advanced_menu_menu_attributes.install, line 24

Code

function advanced_menu_menu_attributes_schema() {
  $schema['advanced_menu_menu_attributes_expire'] = array(
    'description' => t('Holds Expiration data for menus'),
    'fields' => array(
      'mlid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => t('The {menu_links}.mlid to which the expiration date is assigned.'),
      ),
      'expire' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => t('The expiration datetime for the given mlid.'),
      ),
    ),
    'primary key' => array(
      'mlid',
    ),
  );
  return $schema;
}