Révision c304a780
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/ctools/page_manager/plugins/tasks/contact_user.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. |
... | ... | |
9 | 13 |
return; |
10 | 14 |
} |
11 | 15 |
return array( |
12 |
// This is a 'page' task and will fall under the page admin UI |
|
16 |
// This is a 'page' task and will fall under the page admin UI.
|
|
13 | 17 |
'task type' => 'page', |
14 | 18 |
'title' => t('User contact'), |
15 | 19 |
'admin title' => t('User contact'), |
... | ... | |
56 | 60 |
$items['user/%user/contact']['file'] = $task['file']; |
57 | 61 |
} |
58 | 62 |
else { |
59 |
// automatically disable this task if it cannot be enabled.
|
|
63 |
// Automatically disable this task if it cannot be enabled.
|
|
60 | 64 |
variable_set('page_manager_contact_user_disabled', TRUE); |
61 | 65 |
if (!empty($GLOBALS['page_manager_enabling_contact_user'])) { |
62 | 66 |
drupal_set_message(t('Page manager module is unable to enable user/%user/contact because some other module already has overridden with %callback.', array('%callback' => $callback)), 'error'); |
... | ... | |
146 | 150 |
* The subtask id |
147 | 151 |
* @param $contexts |
148 | 152 |
* The contexts loaded for the task. |
153 |
* |
|
149 | 154 |
* @return |
150 | 155 |
* TRUE if the current user can access the page. |
151 | 156 |
*/ |
Formats disponibles : Unified diff
Weekly update of contrib modules