You are here

function fieldset_helper_update_7200 in Fieldset helper 7.2

Change fieldset helper path variables from 'admin/build/modules' to 'admin/modules'.

File

./fieldset_helper.install, line 55
Installation information for the 'Fieldset helper' module.

Code

function fieldset_helper_update_7200(&$sandbox) {
  $result = db_query("SELECT name, value FROM {variable} WHERE name LIKE 'fieldset_helper_%'");
  foreach ($result as $record) {
    if (strpos($record->value, 'admin/build/modules') !== FALSE) {
      variable_set($record->name, str_replace('admin/build/modules', 'admin/modules', $record->value));
    }
  }
}