Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/page_manager/plugins/task_handlers/http_response.inc | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* |
|
6 | 5 |
* This is the task handler plugin to handle generating 403, 404, 301 and 302 |
7 | 6 |
* response codes. |
8 | 7 |
*/ |
9 | 8 |
|
10 |
// Plugin definition |
|
9 |
// Plugin definition.
|
|
11 | 10 |
$plugin = array( |
12 |
// is a 'context' handler type, meaning it supports the API of the
|
|
11 |
// Is a 'context' handler type, meaning it supports the API of the
|
|
13 | 12 |
// context handlers provided by ctools context plugins. |
14 | 13 |
'handler type' => 'context', |
15 | 14 |
'visible' => TRUE, // may be added up front. |
... | ... | |
121 | 120 |
ctools_include('context'); |
122 | 121 |
ctools_include('context-task-handler'); |
123 | 122 |
|
124 |
// Get the operations |
|
123 |
// Get the operations.
|
|
125 | 124 |
$operations = page_manager_get_operations($page); |
126 | 125 |
|
127 | 126 |
// Get operations for just this handler. |
... | ... | |
190 | 189 |
|
191 | 190 |
$output .= '<div class="clearfix">'; |
192 | 191 |
if ($show_title) { |
193 |
$output .= '<div class="handler-title clearfix">'; |
|
192 |
$output .= '<div class="handler-title clearfix">';
|
|
194 | 193 |
$output .= '<div class="actions handler-actions">' . $rendered_operations['actions'] . '</div>'; |
195 | 194 |
$output .= '<span class="title-label">' . $title . '</span>'; |
196 | 195 |
} |
... | ... | |
215 | 214 |
} |
216 | 215 |
|
217 | 216 |
/** |
218 |
* General settings for the panel |
|
217 |
* General settings for the panel.
|
|
219 | 218 |
*/ |
220 | 219 |
function page_manager_http_response_edit_settings($form, &$form_state) { |
221 | 220 |
ctools_include('page_manager.admin', 'page_manager', ''); |
... | ... | |
302 | 301 |
ctools_include('context'); |
303 | 302 |
ctools_include('context-task-handler'); |
304 | 303 |
|
305 |
// Add my contexts |
|
304 |
// Add my contexts.
|
|
306 | 305 |
$contexts = ctools_context_handler_get_handler_contexts($base_contexts, $handler); |
307 | 306 |
|
308 | 307 |
// Test. |
Formats disponibles : Unified diff
Weekly update of contrib modules