You are here

function userpoints_rules_get_all_categories in User Points 7

Same name and namespace in other branches
  1. 7.2 userpoints_rules/userpoints_rules.rules.inc \userpoints_rules_get_all_categories()

Simple callback that lists the categories including an option for all.

1 string reference to 'userpoints_rules_get_all_categories'
userpoints_rules_rules_action_info in ./userpoints_rules.rules.inc
Implements hook_rules_action_info().

File

./userpoints_rules.rules.inc, line 116
Provide better integration into the rules group

Code

function userpoints_rules_get_all_categories() {
  return array(
    'all' => t('All categories'),
  ) + userpoints_get_categories();
}