You are here

function menu_token_schema in Menu Token 6

Same name and namespace in other branches
  1. 7 menu_token.install \menu_token_schema()

Implementation of hook_schema().

File

./menu_token.install, line 10
Install file for menu_token module.

Code

function menu_token_schema() {
  $schema['menu_token'] = array(
    'description' => t('Menu token properties'),
    'fields' => array(
      'mlid' => array(
        'description' => t('The menu link {menu_links}.mlid'),
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'link_path' => array(
        'description' => t('The actual path with tokens'),
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'mlid',
    ),
  );
  return $schema;
}