Révision 7e72b748
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/ctools/ctools_plugin_example/ctools_plugin_example.module | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
/* |
|
3 |
/**
|
|
4 | 4 |
* @file |
5 |
* |
|
6 |
* Working sample module to demonstrate CTools 3 plugins |
|
5 |
* Working sample module to demonstrate CTools 3 plugins. |
|
7 | 6 |
* |
8 | 7 |
* This sample module is only intended to demonstrate how external modules can |
9 | 8 |
* provide ctools plugins. There is no useful functionality, and it's only |
... | ... | |
25 | 24 |
*/ |
26 | 25 |
|
27 | 26 |
/** |
28 |
* Implements hook_menu |
|
27 |
* Implements hook_menu.
|
|
29 | 28 |
*/ |
30 | 29 |
function ctools_plugin_example_menu() { |
31 | 30 |
$items = array(); |
... | ... | |
58 | 57 |
* Implement hook_ctools_plugin_api(). |
59 | 58 |
* |
60 | 59 |
* If you do this, CTools will pick up default panels pages in |
61 |
* <modulename>.pages_default.inc |
|
60 |
* <modulename>.pages_default.inc.
|
|
62 | 61 |
*/ |
63 | 62 |
function ctools_plugin_example_ctools_plugin_api($module, $api) { |
64 | 63 |
// @todo -- this example should explain how to put it in a different file. |
... | ... | |
71 | 70 |
} |
72 | 71 |
|
73 | 72 |
/** |
74 |
* Just provide an explanation page for the admin section |
|
73 |
* Just provide an explanation page for the admin section. |
|
74 |
* |
|
75 | 75 |
* @return unknown_type |
76 | 76 |
*/ |
77 | 77 |
function ctools_plugin_example_explanation_page() { |
Formats disponibles : Unified diff
Weekly update of contrib modules