You are here

function menu_token_update_7000 in Menu Token 7

Implements hook_update_N().

File

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

Code

function menu_token_update_7000(&$sandbox) {
  if (!db_table_exists('menu_token')) {
    $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',
      ),
    );
    db_create_table('menu_token', $schema['menu_token']);
  }
}