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/node_view.inc
15 15
 */
16 16
function page_manager_node_view_page_manager_tasks() {
17 17
  return array(
18
    // This is a 'page' task and will fall under the page admin UI
18
    // This is a 'page' task and will fall under the page admin UI.
19 19
    'task type' => 'page',
20 20

  
21 21
    'title' => t('Node template'),
......
60 60
    $items['node/%node']['file'] = $task['file'];
61 61
  }
62 62
  else {
63
    // automatically disable this task if it cannot be enabled.
63
    // Automatically disable this task if it cannot be enabled.
64 64
    variable_set('page_manager_node_view_disabled', TRUE);
65 65
    if (!empty($GLOBALS['page_manager_enabling_node_view'])) {
66 66
      drupal_set_message(t('Page manager module is unable to enable node/%node because some other module already has overridden with %callback.', array('%callback' => $callback)), 'error');
......
78 78
 * node view, which is node_page_view().
79 79
 */
80 80
function page_manager_node_view_page($node) {
81
  // Load my task plugin
81
  // Load my task plugin.
82 82
  $task = page_manager_get_task('node_view');
83 83

  
84 84
  // Load the node into a context.
......
97 97
    // Set the non-aliased path as a default shortlink.
98 98
    $meta_short = array(
99 99
      'rel' => 'shortlink',
100
      'href' => url($uri['path'], array_merge($uri['options'], array('alias' => TRUE)))
100
      'href' => url($uri['path'], array_merge($uri['options'], array('alias' => TRUE))),
101 101
    );
102 102
    drupal_add_html_head_link($meta_short, TRUE);
103 103
  }
......
174 174
 *   The subtask id
175 175
 * @param $contexts
176 176
 *   The contexts loaded for the task.
177
 *
177 178
 * @return
178 179
 *   TRUE if the current user can access the page.
179 180
 */

Formats disponibles : Unified diff