You are here

function cloud_zoom_update_6001 in Cloud Zoom 6

Implementations of hook_update_n().

File

./cloud_zoom.install, line 118
cloud_zoom.install Contains all the install hooks required - such as schema, install and uninstall

Code

function cloud_zoom_update_6001() {
  $ret = array();
  $table = array(
    'fields' => array(
      'name' => array(
        'description' => t('The primary identifier for an cloud_zoom preset.'),
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'view_preset' => array(
        'description' => t('The preset name for the smaller images.'),
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'zoom_preset' => array(
        'description' => t('The preset name for the zoomed image.'),
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'settings' => array(
        'description' => t('Serialized preset settings.'),
        'type' => 'text',
        'size' => 'big',
        'not null' => FALSE,
      ),
    ),
    'primary key' => array(
      'name',
    ),
  );
  db_create_table($ret, 'cloud_zoom_presets', $table);
  variable_set('cloud_zoom_schema_version', 6001);
  return $ret;
}