You are here

function views_gantt_plugin_style_gantt::load_task_from_node in Views Gantt 7.2

Same name and namespace in other branches
  1. 7 views_gantt_plugin_style_gantt.inc \views_gantt_plugin_style_gantt::load_task_from_node()
1 call to views_gantt_plugin_style_gantt::load_task_from_node()
views_gantt_plugin_style_gantt::load_missing_tasks in ./views_gantt_plugin_style_gantt.inc

File

./views_gantt_plugin_style_gantt.inc, line 624
Contains the list style plugin.

Class

views_gantt_plugin_style_gantt
Style plugin to render Gantt charts.

Code

function load_task_from_node($nid) {
  $node = node_load($nid);
  if ($node) {
    return $this
      ->add_task($node, 'node');
  }
  return FALSE;
}