You are here

function _flag_abuse_abuse_node_flags in Flag Abuse 7.2

Same name and namespace in other branches
  1. 6.2 includes/flag_abuse.flag_default.inc \_flag_abuse_abuse_node_flags()
  2. 6 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
Implements hook_flag_default_flags().

File

includes/flag_abuse.flag_default.inc, line 3

Code

function _flag_abuse_abuse_node_flags(&$flags) {

  // Exported flag: "Node Abuse".
  $flags['abuse_node'] = array(
    flag_abuse_get_api_type() => 'node',
    'title' => 'Node 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_page' => 1,
    'show_on_teaser' => 0,
    'show_contextual_link' => FALSE,
    'i18n' => 0,
    '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,
  );

  // Exported flag: "Whitelist Node".
  $flags['abuse_whitelist_node'] = array(
    flag_abuse_get_api_type() => 'node',
    'title' => 'Node Whitelist',
    'global' => 0,
    'types' => array(),
    'flag_short' => 'Whitelist this content.',
    'flag_long' => 'Remove abuse flags from this node, whitelist.',
    'flag_message' => '',
    'unflag_short' => 'Un-whitelist this content.',
    'unflag_long' => 'Allow abuse reports on this node, un-whitelist',
    '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_page' => 1,
    'show_on_teaser' => 0,
    'show_contextual_link' => FALSE,
    'i18n' => 0,
    '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;
}