You are here

function _publishcontent_get_message in Publish Content 5.2

Same name and namespace in other branches
  1. 5 publishcontent.module \_publishcontent_get_message()
  2. 6 publishcontent.module \_publishcontent_get_message()
  3. 7 publishcontent.module \_publishcontent_get_message()
3 calls to _publishcontent_get_message()
PublishContentWebCaseTest::assert_current_user_can_publish_node in tests/publishcontent.test
PublishContentWebCaseTest::assert_current_user_can_unpublish_node in tests/publishcontent.test
publishcontent_toggle_status in ./publishcontent.module

File

./publishcontent.module, line 99
Add button to publish or unpublish a node, with access control based on the node type

Code

function _publishcontent_get_message($nid, $title, $status) {
  return t($status ? '"@title" [@nid] has been published' : '"@title" [@nid] has been unpublished', array(
    '@title' => $title,
    '@nid' => $nid,
  ));
}