You are here

function flag_hook_test_flag_default_flags in Flag 7.3

Implements hook_flag_default_flags().

File

tests/flag_hook_test/flag_hook_test.module, line 107
flag_hook_test.module Test module for the hooks that Flag invokes.

Code

function flag_hook_test_flag_default_flags() {
  $flags = array();
  $flags['flag_hook_test_flag'] = array(
    'entity_type' => 'node',
    'title' => 'Test Flag',
    'global' => FALSE,
    'types' => array(
      0 => 'article',
    ),
    'flag_short' => 'Flag this',
    'flag_long' => 'Flag this post',
    'flag_message' => 'This post has been flagged',
    'unflag_short' => 'Unflag this',
    'unflag_long' => 'Remove this post from your flagged items',
    'unflag_message' => 'This post has been unflagged',
    'unflag_denied_text' => 'You may not unflag this item',
    'link_type' => 'normal',
    'weight' => 0,
    'show_in_links' => array(
      'full' => TRUE,
      'teaser' => TRUE,
    ),
    'show_as_field' => FALSE,
    'show_on_form' => FALSE,
    'access_author' => '',
    'show_contextual_link' => TRUE,
    'show_on_profile' => FALSE,
    'access_uid' => '',
    'api_version' => 3,
  );
  return $flags;
}