You are here

function panelizer_update_7306 in Panelizer 7.3

Update new variables to reflect the new Panelizer behavior for revision handling when using Workbench Moderation.

File

./panelizer.install, line 1426
Install, update and uninstall functions for the panelizer module.

Code

function panelizer_update_7306() {
  foreach (node_type_get_types() as $type) {
    $options = variable_get('node_options_' . $type->type, array(
      'status',
      'promote',
      'panelizer',
    ));

    // Only set the variable if it wasn't previously configured.
    if (!in_array('panelizer', $options)) {
      $options[] = 'panelizer';
      variable_set('node_options_' . $type->type, $options);
    }
  }
}