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