You are here

function flexslider_update_7001 in Flex Slider 7.2

Same name and namespace in other branches
  1. 7 flexslider.install \flexslider_update_7001()

Remove/Update table fields to better suit FlexSlider

File

./flexslider.install, line 122
Installation actions for FlexSlider

Code

function flexslider_update_7001(&$sandbox) {
  $field_new = array(
    'description' => 'The image style for normal images.',
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => 'flexslider_full',
  );

  // Change the default image style
  db_change_field('flexslider_optionset', 'imagestyle_normal', $field_new, array());

  // Drop the unused table column
  db_drop_field('flexslider_optionset', 'imagestyle_thumb');
}