Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/views_content/plugins/contexts/view.inc | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* |
|
6 | 5 |
* Plugin to provide a node context. A node context is a node wrapped in a |
7 | 6 |
* context object that can be utilized by anything that accepts contexts. |
8 | 7 |
*/ |
... | ... | |
88 | 87 |
$data->set_display($display_id); |
89 | 88 |
} |
90 | 89 |
} |
91 |
else if (!empty($plugin['view name'])) {
|
|
90 |
elseif (!empty($plugin['view name'])) { |
|
92 | 91 |
$data = views_get_view($plugin['view name']); |
93 | 92 |
$data->set_display($plugin['view display id']); |
94 | 93 |
} |
... | ... | |
101 | 100 |
// $output = views_content_context_get_output($context); |
102 | 101 |
// $view = $output['view']; |
103 | 102 |
// @endcode |
104 |
$context->data = array(
|
|
103 |
$context->data = array( |
|
105 | 104 |
'name' => $data->name, |
106 | 105 |
'display' => $data->current_display, |
107 | 106 |
'args' => $data->args, |
... | ... | |
158 | 157 |
* Provide a list of ways that this context can be converted to a string. |
159 | 158 |
*/ |
160 | 159 |
function views_content_context_view_convert_list() { |
161 |
$list = array( |
|
162 |
); |
|
160 |
$list = array(); |
|
163 | 161 |
|
164 | 162 |
return $list; |
165 | 163 |
} |
... | ... | |
171 | 169 |
switch ($type) { |
172 | 170 |
} |
173 | 171 |
} |
174 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules