Révision b720ea3e
Ajouté par Assos Assos il y a plus de 8 ans
drupal7/sites/all/modules/date/date_context/date_context.module | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
/** |
3 |
* @file |
|
4 |
* Add an option to set/not set the context on forms vs views. |
|
5 |
* |
|
3 | 6 |
* @TODO |
4 | 7 |
* |
5 | 8 |
* Currently only implemented for nodes. Need to add $plugin->execute() |
... | ... | |
8 | 11 |
* Cache the date processing, perhaps cache the formatted, timezone-adjusted |
9 | 12 |
* date strings for each entity (would have to be cached differently for each |
10 | 13 |
* timezone, based on the tz_handling method for the date). |
11 |
* |
|
12 |
* Add an option to set/not set the context on forms vs views. |
|
13 | 14 |
*/ |
14 | 15 |
|
15 | 16 |
/** |
... | ... | |
22 | 23 |
} |
23 | 24 |
|
24 | 25 |
/** |
25 |
* Implements hook_context_plugins() |
|
26 |
* Implements hook_context_plugins().
|
|
26 | 27 |
*/ |
27 | 28 |
function date_context_context_plugins() { |
28 | 29 |
$plugins = array(); |
... | ... | |
38 | 39 |
} |
39 | 40 |
|
40 | 41 |
/** |
41 |
* Implements hook_context_registry() |
|
42 |
* Implements hook_context_registry().
|
|
42 | 43 |
*/ |
43 | 44 |
function date_context_context_registry() { |
44 | 45 |
return array( |
... | ... | |
51 | 52 |
), |
52 | 53 |
); |
53 | 54 |
} |
54 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules