You are here

function user_badges_rules_action_info in User Badges 6.2

Same name and namespace in other branches
  1. 6 user_badges.rules.inc \user_badges_rules_action_info()
  2. 7.4 user_badges.rules.inc \user_badges_rules_action_info()
  3. 7.3 user_badges.rules.inc \user_badges_rules_action_info()

Implements hook_rules_action_info().

File

./user_badges.rules.inc, line 206
Provide better integration into the rules module

Code

function user_badges_rules_action_info() {
  return array(
    'user_badges_action_add_badge_by_name' => array(
      'label' => t('Add badge by name'),
      'arguments' => array(
        'account' => array(
          'type' => 'user',
          'label' => t('Acting User'),
        ),
      ),
      'module' => 'User',
      'eval input' => array(
        'badge',
      ),
    ),
    'user_badges_action_remove_badge_by_name' => array(
      'label' => t('Remove badge by name'),
      'arguments' => array(
        'account' => array(
          'type' => 'user',
          'label' => t('Acting User'),
        ),
      ),
      'module' => 'User',
      'eval input' => array(
        'badge',
      ),
    ),
  );
}