function simplenews_scheduler_node_view in Simplenews Scheduler 7
Implements hook_node_view().
File
- ./
simplenews_scheduler.module, line 323 - Simplenews Scheduler module allows a schedule to be set for sending (and resending) a Simplenews item.
Code
function simplenews_scheduler_node_view($node) {
if (isset($node->simplenews_scheduler_edition) && user_access('send scheduled newsletters')) {
drupal_set_message(t('This is a newsletter edition. View the the master template of this newsletter <a href="!master_url">here</a>', array(
'!master_url' => url('node/' . $node->simplenews_edition_parent),
)));
}
}