You are here

function purr_messages_rules_action_info in Purr Messages 7

Same name and namespace in other branches
  1. 8.2 purr_messages.rules.inc \purr_messages_rules_action_info()
  2. 6.2 purr_messages.rules.inc \purr_messages_rules_action_info()
  3. 7.2 purr_messages.rules.inc \purr_messages_rules_action_info()

Implements hook_rules_action_info() on behalf of the system module.

File

./purr_messages.rules.inc, line 6

Code

function purr_messages_rules_action_info() {
  return array(
    'purr_message' => array(
      'label' => t('Show a purr style message on the site'),
      'group' => t('System'),
      'parameter' => array(
        'message' => array(
          'type' => 'text',
          'label' => t('Message'),
          'sanitize' => TRUE,
        ),
        'repeat' => array(
          'type' => 'boolean',
          'label' => t('Repeat message'),
          'description' => t("If disabled and the message has been already shown, \n            then the message won't be repeated."),
          'default value' => TRUE,
          'optional' => TRUE,
          'restriction' => 'input',
        ),
      ),
      'base' => 'purr_messages_drupal_message',
      'access callback' => 'rules_system_integration_access',
    ),
  );
}