You are here

function user_badges_action_info in User Badges 7.4

Same name and namespace in other branches
  1. 6.2 user_badges.module \user_badges_action_info()
  2. 6 user_badges.module \user_badges_action_info()
  3. 7 user_badges.actions.inc \user_badges_action_info()
  4. 7.2 user_badges.actions.inc \user_badges_action_info()
  5. 7.3 user_badges.actions.inc \user_badges_action_info()

Implements hook_action_info().

File

./user_badges.actions.inc, line 10
Actions for User Badges module.

Code

function user_badges_action_info() {
  return array(
    'user_badges_add_badge_action' => array(
      'label' => t('Add badge'),
      'type' => 'user',
      'configurable' => TRUE,
      'triggers' => array(
        'any' => TRUE,
      ),
    ),
    'user_badges_remove_badge_action' => array(
      'label' => t('Remove badge'),
      'type' => 'user',
      'configurable' => TRUE,
      'triggers' => array(
        'any' => TRUE,
      ),
    ),
  );
}