function user_action_info

Implements hook_action_info().

File

modules/user/user.module, line 3768

Code

function user_action_info() {
    return array(
        'user_block_user_action' => array(
            'label' => t('Block current user'),
            'type' => 'user',
            'configurable' => FALSE,
            'triggers' => array(
                'any',
            ),
        ),
        'user_unblock_user_action' => array(
            'label' => t('Unblock current user'),
            'type' => 'user',
            'configurable' => FALSE,
            'triggers' => array(
                'any',
            ),
        ),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.