function workbench_moderation_update_7005 in Workbench Moderation 7
Same name and namespace in other branches
- 7.3 workbench_moderation.install \workbench_moderation_update_7005()
Shorten descriptions for default states
File
- ./
workbench_moderation.install, line 446 - Install file for the Workbench Moderation module.
Code
function workbench_moderation_update_7005() {
// Update workbench_moderation_states
db_update('workbench_moderation_states')
->fields(array(
'description' => 'Visible only to the author',
))
->condition('Name', 'Draft', '=')
->execute();
db_update('workbench_moderation_states')
->fields(array(
'description' => 'Visible to the author and editors',
))
->condition('Name', 'Needs Review', '=')
->execute();
db_update('workbench_moderation_states')
->fields(array(
'description' => 'Visible to the world',
))
->condition('Name', 'Published', '=')
->execute();
return t("Updated state descriptions.");
}