You are here

function textimage_update_3 in Textimage 6.2

Same name and namespace in other branches
  1. 5.2 textimage.install \textimage_update_3()

File

./textimage.install, line 161

Code

function textimage_update_3() {
  $ret = array();
  include_once drupal_get_path('module', 'textimage') . '/textimage_admin.inc';
  $presets = textimage_get_presets();
  foreach ($presets as $preset) {
    if ($preset->settings['text']['angle'] != 0) {
      $preset->settings['text']['angle'] = -$preset->settings['text']['angle'];
      _textimage_preset_update($preset->pid, $preset->name, $preset->description, $preset->settings);
    }
  }
  return $ret;
}