Projet

Général

Profil

Révision c304a780

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/page_manager/plugins/tasks/comment_reply.inc
1 1
<?php
2

  
3
/**
4
 * @file
5
 */
6

  
2 7
/**
3 8
 * Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for
4 9
 * more information.
......
9 14
  }
10 15

  
11 16
  return array(
12
    // 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.
13 18
    'task type' => 'page',
14 19

  
15 20
    'title' => t('Comment Reply page'),
......
45 50
  }
46 51
}
47 52

  
48

  
49 53
/**
50 54
 * Entry point for our overridden comment.
51
 *
52 55
 */
53
function page_manager_comment_reply_page($node, $pid = NULL){
54
    // Load my task plugin
56
function page_manager_comment_reply_page($node, $pid = NULL) {
57
  // Load my task plugin.
55 58
  $task = page_manager_get_task('comment_reply');
56 59

  
57 60
  // Load the node into a context.
......
134 137
    $items['comment/reply/%node']['file'] = $task['file'];
135 138
  }
136 139
  else {
137
    // automatically disable this task if it cannot be enabled.
140
    // Automatically disable this task if it cannot be enabled.
138 141
    variable_set('page_manager_comment_reply_disabled', TRUE);
139 142
    if (!empty($GLOBALS['page_manager_enabling_comment_reply'])) {
140 143
      drupal_set_message(t('Page manager module is unable to enable comment/reply/%node because some other module already has overridden with %callback.', array('%callback' => $callback)), 'error');
......
153 156
 *   The subtask id
154 157
 * @param $contexts
155 158
 *   The contexts loaded for the task.
159
 *
156 160
 * @return
157 161
 *   TRUE if the current user can access the page.
158 162
 */

Formats disponibles : Unified diff