Projet

Général

Profil

Paste
Télécharger (1,09 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / flag / tests / flag_fields_test / flag_fields_test.module @ 76e2e7c3

1
<?php
2

    
3
/**
4
 * @file flag_fields_test.module
5
 * Test module for fields on flagging entities.
6
 */
7

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