You are here

function juicerio_update_7001 in Juicer - Social Media Feed Aggregator 7

Update old variable names to new.

File

./juicerio.install, line 24
Install, Ununstall, and update functions for JuicerIO module.

Code

function juicerio_update_7001() {
  $feed_id = variable_get('juicer_io_feed_id', NULL);
  variable_set('juicerio_feed_id', $feed_id);
  variable_del('juicer_io_feed_id');
  $posts = variable_get('juicer_io_post_number', NULL);
  variable_set('juicerio_1_post_num', $posts);
  variable_del('juicer_io_post_number');
  $pages = variable_get('juicerio_infinite_pages');
  variable_set('juicerio_1_infinite_pages', $pages);
  variable_del('juicer_io_infinite_pages');
  $gutter = variable_get('juicer_io_gutter_amt');
  variable_set('juicerio_1_gutter_amt', $gutter);
  variable_del('juicer_io_gutter_amt');
  $cols = variable_get('juicer_io_column_number');
  variable_set('juicerio_1_column_num', $cols);
  variable_del('juicer_io_column_number');
  $filters = variable_get('juicer_io_filter');
  variable_set('juicerio_1_filters', $filters);
  variable_del('juicer_io_filter');
}