You are here

function pm_update_7200 in Drupal PM (Project Management) 7.3

Same name and namespace in other branches
  1. 8 pm.install \pm_update_7200()
  2. 7.2 pm.install \pm_update_7200()

Migrate pm_icons_display settings to new pm_icon variable.

File

./pm.install, line 74
Install, update and uninstall functions for the Project Management module.

Code

function pm_update_7200() {
  $display_icon = variable_get('pm_icons_display', TRUE);
  if ($display_icon) {
    variable_set('pm_icon', PM_ICON_SET_DEFAULT_BEHAVIOUR);
  }
  else {
    variable_set('pm_icon', PM_ICON_SET_NO_ICON);
  }
  variable_del('pm_icons_display');
}