You are here

function mobile_tools_update_7302 in Mobile Tools 7.3

Implements hook_update_N().

Adds column to store themekey rule ID

File

./mobile_tools.install, line 204
Instalation of the mobile_tools module

Code

function mobile_tools_update_7302(&$sandbox) {
  $field = array(
    'description' => 'ThemeKey Rule ID',
    'type' => 'int',
    'not null' => FALSE,
    'unsigned' => TRUE,
  );

  // We don't include the foreign key relationship since ThemeKey may not exist
  // @todo change theme switch to be a separate module to fix this shortcoming
  db_add_field('mobile_tools_device_group', 'themekey_id', $field);
}