Révision 7e72b748
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/ctools/ctools_plugin_example/plugins/arguments/simplecontext_arg.inc | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* |
|
6 | 5 |
* Sample plugin to provide an argument handler for a simplecontext. |
7 | 6 |
* |
8 | 7 |
* Given any argument to the page, simplecontext will get it |
... | ... | |
18 | 17 |
*/ |
19 | 18 |
$plugin = array( |
20 | 19 |
'title' => t("Simplecontext arg"), |
21 |
// keyword to use for %substitution
|
|
20 |
// Keyword to use for %substitution.
|
|
22 | 21 |
'keyword' => 'simplecontext', |
23 | 22 |
'description' => t('Creates a "simplecontext" from the arg.'), |
24 | 23 |
'context' => 'simplecontext_arg_context', |
25 |
// 'settings form' => 'simplecontext_arg_settings_form', |
|
26 |
|
|
27 | 24 |
// placeholder_form is used in panels preview, for example, so we can |
28 |
// preview without getting the arg from a URL |
|
25 |
// preview without getting the arg from a URL.
|
|
29 | 26 |
'placeholder form' => array( |
30 | 27 |
'#type' => 'textfield', |
31 | 28 |
'#description' => t('Enter the simplecontext arg'), |
Formats disponibles : Unified diff
Weekly update of contrib modules