You are here

function revisioning_set_status_message in Revisioning 8

Same name and namespace in other branches
  1. 7 revisioning.module \revisioning_set_status_message()

Output a status message, provided teh user has the required permission.

Parameters

string $message: The status message to be displayed.

9 calls to revisioning_set_status_message()
revisioning_delete_archived_action in ./revisioning_triggers_actions.inc
As declared in revisioning_action_info().
revisioning_delete_archived_confirm_submit in ./revisioning.pages.inc
Submission handler for the delete_archived_confirm form.
revisioning_node_insert in ./revisioning.module
Implements hook_node_insert().
revisioning_node_presave in ./revisioning.module
Implements hook_node_presave().
revisioning_publish_confirm_submit in ./revisioning.pages.inc
Submission handler for the publish_confirm form.

... See full list

File

./revisioning.module, line 491
Allows content to be updated and reviewed before submitting it for publication, while the current live revision remains unchanged and publicly visible until the changes have been reviewed and found fit for publication by a moderator.

Code

function revisioning_set_status_message($message) {
  if (user_access('view revision status messages')) {
    drupal_set_message(filter_xss($message), 'status');
  }
}