function _flag_abuse_abuse_comment_flags in Flag Abuse 6.2
Same name and namespace in other branches
- 6 includes/flag_abuse.flag_default.inc \_flag_abuse_abuse_comment_flags()
- 7.2 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 - Implementation of hook_flag_default_flags().
File
- includes/
flag_abuse.flag_default.inc, line 55
Code
function _flag_abuse_abuse_comment_flags(&$flags) {
// Exported flag: "Comment Abuse".
$flags[] = array(
'content_type' => 'comment',
'name' => 'abuse_comment',
'title' => 'Comment Abuse',
'global' => false,
'types' => array(
0 => 'story',
),
'events' => array(
0 => 'flag',
1 => 'unflag',
),
'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',
),
),
'access_author' => '',
'show_on_comment' => true,
'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?',
'reset_short' => 'Reset flags',
'reset_long' => 'Reset all flags on this commnet',
'reset_confirmation' => 'Are you sure you want to reset all flags on this comment?',
'status' => false,
'show_on_teaser' => false,
'locked' => array(
'name' => 'name',
'global' => 'global',
),
'module' => 'flag_abuse',
'api_version' => 2,
);
return $flags;
}