Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/plugins/contexts/token.inc | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* Provide a global context to allow for token support.
|
|
5 |
* Provide a global context to allow for token support. |
|
6 | 6 |
*/ |
7 | 7 |
|
8 | 8 |
$plugin = array( |
... | ... | |
38 | 38 |
/** |
39 | 39 |
* Implementation of hook_ctools_context_convert_list(). |
40 | 40 |
* |
41 |
* @return array|NULL
|
|
41 |
* @return array|null
|
|
42 | 42 |
* An array of token type information, keyed by 'type:id', or NULL if |
43 | 43 |
* none found. |
44 | 44 |
*/ |
... | ... | |
68 | 68 |
* @param string $token |
69 | 69 |
* The name of the token. |
70 | 70 |
* |
71 |
* @return array|NULL
|
|
71 |
* @return array|null
|
|
72 | 72 |
* The token value, or NULL if not found. |
73 | 73 |
* |
74 |
* @see ctools_context_convert_context().
|
|
74 |
* @see ctools_context_convert_context() |
|
75 | 75 |
*/ |
76 | 76 |
function ctools_context_token_convert($context, $token) { |
77 | 77 |
$tokens = token_info(); |
Formats disponibles : Unified diff
Weekly update of contrib modules