Projet

Général

Profil

Révision 7e72b748

Ajouté par Assos Assos il y a plus de 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/tests/ctools_plugin_test.module
1 1
<?php
2

  
2 3
/**
3
 * Define some plugin systems to test ctools plugin includes.
4
 * @file
5
 * Define some plugin systems to test CTools plugin includes.
4 6
 */
5 7

  
6 8
/**
7
 * Implementation of hook_ctools_plugin_dierctory()
9
 * Implementation of hook_ctools_plugin_directory().
8 10
 */
9 11
function ctools_plugin_test_ctools_plugin_directory($module, $plugin) {
10 12
  if ($module == 'ctools_plugin_test') {
......
12 14
  }
13 15
}
14 16

  
17
/**
18
 * Implements hook_ctools_plugin_type().
19
 */
15 20
function ctools_plugin_test_ctools_plugin_type() {
16 21
  return array(
17 22
    'extra_defaults' => array(
......
50 55
  );
51 56
}
52 57

  
58
/**
59
 * Plugin callback.
60
 *
61
 * @see ctools_plugin_test_ctools_plugin_type()
62
 */
53 63
function ctools_plugin_test_ctools_plugin_test_big_hook_cached() {
54 64
  return array(
55 65
    'test1' => array(
......
59 69
  );
60 70
}
61 71

  
72
/**
73
 * Plugin callback.
74
 *
75
 * @see ctools_plugin_test_ctools_plugin_type()
76
 */
62 77
function ctools_plugin_test_ctools_plugin_test_big_hook_not_cached() {
63 78
  return array(
64 79
    'test1' => array(
......
68 83
  );
69 84
}
70 85

  
86
/**
87
 * Callback for the big_hook_cached plugin.
88
 *
89
 * @see ctools_plugin_test_ctools_plugin_test_big_hook_cached
90
 */
71 91
function ctools_plugin_test_hook_cached_test() {}
92

  
93
/**
94
 * Callback for the big_hook_not_cached plugin.
95
 *
96
 * @see ctools_plugin_test_ctools_plugin_test_big_hook_not_cached()
97
 */
72 98
function ctools_plugin_test_hook_not_cached_test() {}

Formats disponibles : Unified diff