You are here

function user_stats_action_info in User Stats 5

Same name and namespace in other branches
  1. 6 user_stats.module \user_stats_action_info()
  2. 7 user_stats.module \user_stats_action_info()

Implementation of hook_action_info().

File

./user_stats.module, line 606
User Stats provides commonly requested user statistics for themers. These are:

Code

function user_stats_action_info() {
  return array(
    'user_stats_action_post_count_increment' => array(
      '#label' => t('Increment user post count'),
      '#arguments' => array(
        'user' => array(
          '#entity' => 'user',
          '#label' => t('User whos post count should be incremented'),
        ),
      ),
      '#module' => t('User'),
      '#description' => t('Increments the post count of a user'),
    ),
    'user_stats_action_post_count_decrement' => array(
      '#label' => t('Decrement user post count'),
      '#arguments' => array(
        'user' => array(
          '#entity' => 'user',
          '#label' => t('User whos post count should be decremented'),
        ),
      ),
      '#module' => t('User'),
      '#description' => t('Decrements the post count of a user'),
    ),
    'user_stats_action_post_count_reset' => array(
      '#label' => t('Reset the user post count'),
      '#arguments' => array(
        'user' => array(
          '#entity' => 'user',
          '#label' => t('User whos post count should be reset'),
        ),
      ),
      '#module' => t('User'),
      '#description' => t('Resets the post count of the current user.'),
    ),
  );
}