function _flag_abuse_abuse_user_flags in Flag Abuse 7.2
Same name and namespace in other branches
- 6.2 includes/flag_abuse.flag_default.inc \_flag_abuse_abuse_user_flags()
- 6 includes/flag_abuse.flag_default.inc \_flag_abuse_abuse_user_flags()
1 call to _flag_abuse_abuse_user_flags()
- flag_abuse_flag_default_flags in ./
flag_abuse.module - Implements hook_flag_default_flags().
File
- includes/
flag_abuse.flag_default.inc, line 163
Code
function _flag_abuse_abuse_user_flags(&$flags) {
// Exported flag: "User Abuse".
$flags['abuse_user'] = array(
flag_abuse_get_api_type() => 'user',
'title' => 'User Abuse',
'global' => 0,
'types' => array(),
'flag_short' => 'Report User',
'flag_long' => 'Report this user as offensive.',
'flag_message' => '',
'unflag_short' => 'Remove Report',
'unflag_long' => 'Remove your report about this user.',
'unflag_message' => '',
'unflag_denied_text' => '',
'link_type' => 'confirm',
'roles' => array(
'flag' => array(
0 => '2',
),
'unflag' => array(
0 => '2',
),
),
'weight' => 0,
'show_on_form' => 0,
'access_author' => '',
'show_on_profile' => 1,
'access_uid' => '',
'flag_confirmation' => 'Are you sure you want to report this user as offensive?',
'unflag_confirmation' => 'Are you sure you want to remove your report of this user?',
'module' => 'flag_abuse',
'locked' => array(
'name' => 'name',
'global' => 'global',
),
'api_version' => FLAG_API_VERSION,
);
// Add whitelisting flag for users
$flags['abuse_whitelist_user'] = array(
flag_abuse_get_api_type() => 'user',
'title' => 'User Whitelist',
'global' => 0,
'types' => array(),
'flag_short' => 'Whitelist User',
'flag_long' => 'Whitelist this user and remove abuse reporting.',
'flag_message' => '',
'unflag_short' => 'Un-whitelist User',
'unflag_long' => 'Remove whitelist from this user, allow abuse reports about them.',
'unflag_message' => '',
'unflag_denied_text' => '',
'link_type' => 'confirm',
'roles' => array(
'flag' => array(
0 => '3',
),
'unflag' => array(
0 => '3',
),
),
'weight' => 1,
'show_on_form' => 0,
'access_author' => '',
'show_on_profile' => 1,
'access_uid' => '',
'flag_confirmation' => 'Are you sure you want to whitelist this user?',
'unflag_confirmation' => 'Are you sure you want to un-whitelist this user?',
'module' => 'flag_abuse',
'locked' => array(
'name' => 'name',
'global' => 'global',
),
'api_version' => FLAG_API_VERSION,
);
return $flags;
}