You are here

function _publishcontent_get_message in Publish Content 7

Same name and namespace in other branches
  1. 5.2 publishcontent.module \_publishcontent_get_message()
  2. 5 publishcontent.module \_publishcontent_get_message()
  3. 6 publishcontent.module \_publishcontent_get_message()

Helper function to generate change of status message.

2 calls to _publishcontent_get_message()
PublishContentTabTests::assertNodeOperationAccess in tests/publishcontent.test
Perform a GET operation on a node.
publishcontent_toggle_status in ./publishcontent.module
Menu callback for publish / unpublish content actions.

File

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

Code

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