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/poll.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

  
16 20
    'title' => t('All polls'),
......
68 72
 * node edit, which is node_page_edit().
69 73
 */
70 74
function page_manager_poll() {
71
  // Load my task plugin
75
  // Load my task plugin.
72 76
  $task = page_manager_get_task('poll');
73 77

  
74 78
  ctools_include('context');
......
113 117
 *   The subtask id
114 118
 * @param $contexts
115 119
 *   The contexts loaded for the task.
120
 *
116 121
 * @return
117 122
 *   TRUE if the current user can access the page.
118 123
 */

Formats disponibles : Unified diff