You are here

views_gantt.api.php in Views Gantt 7.2

Same filename and directory in other branches
  1. 7 views_gantt.api.php

Hooks provided by the Views Gantt module.

File

views_gantt.api.php
View source
<?php

/**
 * @file
 * Hooks provided by the Views Gantt module.
 */

/**
 * Alter an array of tasks provided by Gantt view before other modifications.
 *
 * @param $tasks
 *  An array of tasks (array keys are ids of tasks nodes).
 */
function hook_views_gantt_tasks_prerender_alter(&$tasks) {
}

/**
 * @param $access
 * 	Boolean indicating whether user can update task/project.
 * @param $node
 * 	The node object on which the operation is to be performed.
 * @param $account
 * 	A user object representing the user for whom the operation is to be performed.
 */
function hook_views_gantt_update_access(&$access, $node, $account) {
}

Functions

Namesort descending Description
hook_views_gantt_tasks_prerender_alter Alter an array of tasks provided by Gantt view before other modifications.
hook_views_gantt_update_access