You are here

function _flag_abuse_abuse_node_flags in Flag Abuse 6

Same name and namespace in other branches
  1. 6.2 includes/flag_abuse.flag_default.inc \_flag_abuse_abuse_node_flags()
  2. 7.2 includes/flag_abuse.flag_default.inc \_flag_abuse_abuse_node_flags()
1 call to _flag_abuse_abuse_node_flags()
flag_abuse_flag_default_flags in ./flag_abuse.module
Implementation of hook_flag_default_flags().

File

includes/flag_abuse.flag_default.inc, line 3

Code

function _flag_abuse_abuse_node_flags(&$flags) {
  $flags[] = array(
    'content_type' => 'node',
    'name' => 'abuse_node',
    'title' => 'Node Abuse',
    'roles' => array(
      0 => '2',
    ),
    'global' => FALSE,
    'flag_short' => 'Flag as offensive',
    'flag_long' => 'Flag this content as offensive.',
    'flag_confirmation' => 'Are you sure you want to flag this content as offensive?',
    'unflag_short' => 'Flag as non-offensive',
    'unflag_long' => 'Flag this content as non-offensive.',
    'unflag_confirmation' => 'Are you sure you want to flag this content as non-offensive?',
    'types' => array(
      'story',
    ),
    'status' => FALSE,
    'show_on_teaser' => FALSE,
    'link_type' => 'confirm',
    'locked' => array(
      'name',
      'global',
    ),
  );
  return $flags;
}