Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/page_manager/plugins/tasks/node_edit.inc | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
/** |
|
4 |
* @file |
|
5 |
*/ |
|
6 |
|
|
3 | 7 |
/** |
4 | 8 |
* Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for |
5 | 9 |
* more information. |
6 | 10 |
*/ |
7 | 11 |
function page_manager_node_edit_page_manager_tasks() { |
8 | 12 |
return array( |
9 |
// This is a 'page' task and will fall under the page admin UI |
|
13 |
// This is a 'page' task and will fall under the page admin UI.
|
|
10 | 14 |
'task type' => 'page', |
11 | 15 |
|
12 | 16 |
'title' => t('Node add/edit form'), |
... | ... | |
83 | 87 |
* node edit, which is node_page_edit(). |
84 | 88 |
*/ |
85 | 89 |
function page_manager_node_edit($node) { |
86 |
// Load my task plugin |
|
90 |
// Load my task plugin.
|
|
87 | 91 |
$task = page_manager_get_task('node_edit'); |
88 | 92 |
|
89 | 93 |
// Load the node into a context. |
... | ... | |
176 | 180 |
* The subtask id |
177 | 181 |
* @param $contexts |
178 | 182 |
* The contexts loaded for the task. |
183 |
* |
|
179 | 184 |
* @return |
180 | 185 |
* TRUE if the current user can access the page. |
181 | 186 |
*/ |
Formats disponibles : Unified diff
Weekly update of contrib modules