function _flag_abuse_abuse_comment_flags in Flag Abuse 7.2
Same name and namespace in other branches
- 6.2 includes/flag_abuse.flag_default.inc \_flag_abuse_abuse_comment_flags()
- 6 includes/flag_abuse.flag_default.inc \_flag_abuse_abuse_comment_flags()
1 call to _flag_abuse_abuse_comment_flags()
- flag_abuse_flag_default_flags in ./
flag_abuse.module - Implements hook_flag_default_flags().
File
- includes/
flag_abuse.flag_default.inc, line 85
Code
function _flag_abuse_abuse_comment_flags(&$flags) {
// Exported flag: "Comment Abuse".
$flags['abuse_comment'] = array(
flag_abuse_get_api_type() => 'comment',
'title' => 'Comment Abuse',
'global' => 0,
'types' => array(),
'flag_short' => 'Flag as offensive',
'flag_long' => 'Flag this content as offensive.',
'flag_message' => '',
'unflag_short' => 'Flag as non-offensive',
'unflag_long' => 'Flag this content as non-offensive.',
'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_comment' => 1,
'flag_confirmation' => 'Are you sure you want to flag this content as offensive?',
'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?',
'module' => 'flag_abuse',
'locked' => array(
'name' => 'name',
'global' => 'global',
),
'api_version' => FLAG_API_VERSION,
);
// Add whitelist flag
$flags['abuse_whitelist_comment'] = array(
flag_abuse_get_api_type() => 'comment',
'title' => 'Comment Whitelist',
'global' => 0,
'types' => array(),
'flag_short' => 'Whitelist this comment.',
'flag_long' => 'Add this content to a whitelist, remove abuse reports..',
'flag_message' => '',
'unflag_short' => 'Un-whitelist this comment.',
'unflag_long' => 'Un-whitelist, allow users to mark as offensive..',
'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_comment' => 1,
'flag_confirmation' => 'Are you sure you want to whitelist this content?',
'unflag_confirmation' => 'Are you sure you want to un-whitelist this content?',
'module' => 'flag_abuse',
'locked' => array(
'name' => 'name',
'global' => 'global',
),
'api_version' => FLAG_API_VERSION,
);
return $flags;
}