You are here

function revisioning_hook_info in Revisioning 6.3

Same name and namespace in other branches
  1. 6.4 revisioning_triggers_actions.inc \revisioning_hook_info()
  2. 6 revisioning_triggers_actions.inc \revisioning_hook_info()

Implementation of hook_hook_info(). Defines triggers available in this module.

File

./revisioning_triggers_actions.inc, line 12
Triggers and actions supported by the revisioning module.

Code

function revisioning_hook_info() {
  return array(
    // First key is name of tab on admin/build/trigger page that triggers appear on
    'revisioning' => array(
      'revisioning' => array(
        // trigger name must equal module name
        // List of trigger operations
        'publish' => array(
          'runs when' => t('When publishing a pending revision'),
        ),
        'revert' => array(
          'runs when' => t('When reverting to an archived revision'),
        ),
        'unpublish' => array(
          'runs when' => t('When unpublishing the current revision'),
        ),
      ),
    ),
  );
}