You are here

function themekey_update_6100 in ThemeKey 6.3

Same name and namespace in other branches
  1. 6.4 themekey.install \themekey_update_6100()
  2. 6.2 themekey.install \themekey_update_6100()
  3. 7.3 themekey.install \themekey_update_6100()
  4. 7 themekey.install \themekey_update_6100()
  5. 7.2 themekey.install \themekey_update_6100()

Implements hook_update_N().

File

./themekey.install, line 89
Database schema of

Code

function themekey_update_6100() {
  $properties = variable_get('themekey_properties', array());
  foreach ($properties as $key => &$property) {
    if (array_key_exists('path', $property) && $key === $property['path']) {
      $property['path'] = FALSE;
    }
  }
  variable_set('themekey_properties', $properties);
  return array();
}