You are here

function _flag_abuse_abuse_user_flags in Flag Abuse 6.2

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

File

includes/flag_abuse.flag_default.inc, line 104

Code

function _flag_abuse_abuse_user_flags(&$flags) {

  // Exported flag: "User Abuse".
  $flags[] = array(
    'content_type' => 'user',
    'name' => 'abuse_user',
    'title' => 'User Abuse',
    'global' => false,
    'types' => array(),
    'events' => array(
      0 => 'flag',
      1 => 'unflag',
    ),
    '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',
      ),
    ),
    'show_on_profile' => true,
    '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?',
    'reset_short' => 'Reset flags',
    'reset_long' => 'Reset all flags on this user',
    'reset_confirmation' => 'Are you sure you want to reset all flags on this user?',
    'status' => false,
    'show_on_teaser' => false,
    'locked' => array(
      'name' => 'name',
      'global' => 'global',
    ),
    'module' => 'flag_abuse',
    'api_version' => 2,
  );
  return $flags;
}