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/includes/context-task-handler.inc
4 4
 * @file
5 5
 * Support for creating 'context' type task handlers.
6 6
 *
7
 * Context task handlers expect the task to provide 0 or more contexts. The
8
 * task handler should use those contexts as selection rules, as well as
9
 * rendering with them.
7
 * Context task handlers expect the task to provide 0 or more contexts. The task
8
 * handler should use those contexts as selection rules, as well as rendering
9
 * with them.
10 10
 *
11 11
 * The functions and forms in this file should be common to every context type
12 12
 * task handler made.
......
226 226
}
227 227

  
228 228
/**
229
 * Default function to provide contextual link for a task as defined by the handler.
229
 * Provides contextual link for a task as defined by the handler.
230 230
 *
231 231
 * This provides a simple link to th main content operation and is suitable
232 232
 * for most normal handlers. Setting 'contextual link' to a function overrides
......
274 274
/**
275 275
 * Compare arguments to contexts for selection purposes.
276 276
 *
277
 * @param $handler
277
 * @param object $handler
278 278
 *   The handler in question.
279
 * @param $contexts
279
 * @param object $contexts
280 280
 *   The context objects provided by the task.
281 281
 *
282
 * @return
282
 * @return bool
283 283
 *   TRUE if these contexts match the selection rules. NULL or FALSE
284 284
 *   otherwise.
285 285
 */
......
298 298
 * These summary strings are used to communicate to the user what
299 299
 * arguments the task handlers are selecting.
300 300
 *
301
 * @param $task
301
 * @param object $task
302 302
 *   The loaded task plugin.
303
 * @param $subtask
303
 * @param object $subtask
304 304
 *   The subtask id.
305
 * @param $handler
305
 * @param object $handler
306 306
 *   The handler to be checked.
307
 *
308
 * @return array
309
 *   Returns array of summary strings for arguments selected by task handlers.
307 310
 */
308 311
function ctools_context_handler_summary($task, $subtask, $handler) {
309 312
  if (empty($handler->conf['access']['plugins'])) {

Formats disponibles : Unified diff