You are here

function user_badges_action_info in User Badges 6

Same name and namespace in other branches
  1. 6.2 user_badges.module \user_badges_action_info()
  2. 7.4 user_badges.actions.inc \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.module, line 1138
@brief User Badges module file

Code

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