Enable the Actions module.
function system_update_8021() {
// Enable the module without re-installing the schema.
module_enable(array(
'action',
));
// Rename former System module actions.
$map = array(
'system_message_action' => 'action_message_action',
'system_send_email_action' => 'action_send_email_action',
'system_goto_action' => 'action_goto_action',
);
foreach ($map as $old => $new) {
// Rename all references to the action callback.
db_update('actions')
->fields(array(
'callback' => $new,
))
->condition('callback', $old)
->execute();
// Rename the action's aid.
db_update('actions')
->fields(array(
'aid' => $new,
))
->condition('aid', $old)
->execute();
}
}