flag_fields_test.module 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * @file flag_fields_test.module
  4. * Test module for fields on flagging entities.
  5. */
  6. /**
  7. * Implements hook_flag_default_flags().
  8. */
  9. function flag_fields_test_flag_default_flags() {
  10. $flags = array();
  11. // Exported flag: "Flag fields test".
  12. $flags['flag_fields_test_flag'] = array(
  13. 'entity_type' => 'node',
  14. 'title' => 'Flag fields test',
  15. 'global' => 1,
  16. 'types' => array(),
  17. 'flag_short' => 'Flag with the test flag',
  18. 'flag_long' => '',
  19. 'flag_message' => '',
  20. 'unflag_short' => 'Unflag',
  21. 'unflag_long' => '',
  22. 'unflag_message' => '',
  23. 'unflag_denied_text' => '',
  24. 'link_type' => 'confirm',
  25. 'weight' => -15,
  26. 'show_in_links' => array(
  27. 'full' => 'full',
  28. 'teaser' => 'teaser',
  29. 'rss' => 0,
  30. 'token' => 0,
  31. 'revision' => 0,
  32. ),
  33. 'show_as_field' => 0,
  34. 'show_on_form' => 0,
  35. 'access_author' => '',
  36. 'show_contextual_link' => 0,
  37. 'i18n' => 0,
  38. 'flag_confirmation' => 'Confirm flagging this node',
  39. 'unflag_confirmation' => 'Confirm unflagging this node',
  40. 'api_version' => 3,
  41. );
  42. return $flags;
  43. }