Community Documentation

Notify the content author about changes

Last updated November 19, 2007. Created by Amitaibu on July 2, 2007.
Edited by Michelle, fago. Log in to edit this page.

Required modules: -

array (
  'cfg4' =>
  array (
    '#type' => 'configuration',
    '#label' => 'Notify the content author about changes from other users',
    '#event' => 'node_update',
    '#module' => 'workflow-ng',
    0 =>
    array (
      '#type' => 'condition',
      '#negate' => 1,
      '#argument map' =>
      array (
        'author' => 'user1',
        'user' => 'user2',
      ),
      '#name' => 'workflow_ng_condition_user_comparison',
      '#label' => 'updating user is author',
    ),
    '#altered' => true,
    1 =>
    array (
      '#type' => 'action',
      '#name' => 'workflow_ng_action_mail_to_user',
      '#settings' =>
      array (
        'message' => 'Hello [author_unchanged:user]!

Your [node_unchanged:type-name] with the title [node_unchanged:title] has been modified by [user:user] at [node:site-date]:
[node:site-url]/node/[node_unchanged:nid].

--- [node:site-name]',
        'subject' => '[node_unchanged:title] has been modified!',
        'message_args' =>
        array (
          0 => 'node',
          1 => 'user',
          2 => 'node_unchanged',
          3 => 'author_unchanged',
        ),
        'subject_args' =>
        array (
          0 => 'node_unchanged',
        ),
        'from' => 'yourmail@example.com',
        'from_args' =>
        array (
        ),
      ),
      '#label' => 'Inform the author by mail',
      '#argument map' =>
      array (
        'author' => 'user',
      ),
    ),
    '#name' => 'config4',
  ),
)

About this page

Drupal version
Drupal 5.x
Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here