Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/page_manager/plugins/tasks/user_view.inc | ||
---|---|---|
9 | 9 |
*/ |
10 | 10 |
function page_manager_user_view_page_manager_tasks() { |
11 | 11 |
return array( |
12 |
// This is a 'page' task and will fall under the page admin UI |
|
12 |
// This is a 'page' task and will fall under the page admin UI.
|
|
13 | 13 |
'task type' => 'page', |
14 | 14 |
'title' => t('User profile template'), |
15 | 15 |
'admin title' => t('User profile template'), |
... | ... | |
53 | 53 |
$items['user/%user']['file'] = $task['file']; |
54 | 54 |
} |
55 | 55 |
else { |
56 |
// automatically disable this task if it cannot be enabled.
|
|
56 |
// Automatically disable this task if it cannot be enabled.
|
|
57 | 57 |
variable_set('page_manager_user_view_disabled', TRUE); |
58 | 58 |
if (!empty($GLOBALS['page_manager_enabling_user_view'])) { |
59 | 59 |
drupal_set_message(t('Page manager module is unable to enable user/%user because some other module already has overridden with %callback.', array('%callback' => $items['user/%user']['page callback'])), 'error'); |
... | ... | |
98 | 98 |
if ($function == 'user_view') { |
99 | 99 |
module_load_include('inc', 'user', 'user.pages'); |
100 | 100 |
} |
101 |
//fire off "view" op so that triggers still work
|
|
101 |
// Fire off "view" op so that triggers still work.
|
|
102 | 102 |
// @todo -- this doesn't work anymore, and the alternatives seem bad. |
103 | 103 |
// will have to figure out how to fix this. |
104 |
// user_module_invoke('view', $array = array(), $account); |
|
105 | 104 |
return $function($account); |
106 | 105 |
} |
107 | 106 |
|
... | ... | |
152 | 151 |
* The subtask id |
153 | 152 |
* @param $contexts |
154 | 153 |
* The contexts loaded for the task. |
154 |
* |
|
155 | 155 |
* @return |
156 | 156 |
* TRUE if the current user can access the page. |
157 | 157 |
*/ |
Formats disponibles : Unified diff
Weekly update of contrib modules