You are here

function user_stats_action_info in User Stats 6

Same name and namespace in other branches
  1. 5 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 550
User Stats provides commonly requested user statistics for themers. These are:

Code

function user_stats_action_info() {
  return array(
    'user_stats_post_count_reset_action' => array(
      'description' => t('Reset user post count'),
      'type' => 'user',
      'configurable' => FALSE,
      'hooks' => array(
        'nodeapi' => array(
          'delete',
          'insert',
          'update',
          'view',
        ),
        'comment' => array(
          'view',
          'insert',
          'update',
          'delete',
        ),
        'user' => array(
          'login',
          'logout',
        ),
      ),
    ),
    'user_stats_login_count_reset_action' => array(
      'description' => t('Reset user login count'),
      'type' => 'user',
      'configurable' => FALSE,
      'hooks' => array(
        'nodeapi' => array(
          'delete',
          'insert',
          'update',
          'view',
        ),
        'comment' => array(
          'view',
          'insert',
          'update',
          'delete',
        ),
        'user' => array(
          'login',
          'logout',
        ),
      ),
    ),
  );
}