You are here

function revisioning_hook_info in Revisioning 6

Same name and namespace in other branches
  1. 6.4 revisioning_triggers_actions.inc \revisioning_hook_info()
  2. 6.3 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 old revision'),
        ),
        'unpublish' => array(
          'runs when' => t('When unpublishing the current revision'),
        ),
      ),
    ),
  );
}