You are here

function _publishcontent_get_message in Publish Content 5

Same name and namespace in other branches
  1. 5.2 publishcontent.module \_publishcontent_get_message()
  2. 6 publishcontent.module \_publishcontent_get_message()
  3. 7 publishcontent.module \_publishcontent_get_message()
1 call to _publishcontent_get_message()
publishcontent_toggle_status in ./publishcontent.module

File

./publishcontent.module, line 59
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,
  ));
}