You are here

function workbench_moderation_update_7001 in Workbench Moderation 7

Same name and namespace in other branches
  1. 7.3 workbench_moderation.install \workbench_moderation_update_7001()

Update the 'weight' field on {workbench_moderation_states}.

Accept standard Drupal weight values.

File

./workbench_moderation.install, line 260
Install file for the Workbench Moderation module.

Code

function workbench_moderation_update_7001() {
  db_change_field('workbench_moderation_states', 'weight', 'weight', array(
    'description' => 'Sort weight for the moderation state.',
    'type' => 'int',
    'default' => 0,
  ));
  return t('Updated the weight field on the moderation states table.');
}