You are here

function views_gantt_plugin_style_gantt::options_node in Views Gantt 7

Same name and namespace in other branches
  1. 7.2 views_gantt_plugin_style_gantt.inc \views_gantt_plugin_style_gantt::options_node()

Some fields in $this->options can have incorrect names (e.g. field_date_1). We need to create new array which contains correct field names to use it in views_gantt_get_node_field_value() function.

1 call to views_gantt_plugin_style_gantt::options_node()
views_gantt_plugin_style_gantt::render in ./views_gantt_plugin_style_gantt.inc
Render the given style.

File

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

Class

views_gantt_plugin_style_gantt
Style plugin to render Gantt charts.

Code

function options_node() {
  $view_fields = $this->view->field;
  foreach ($this->options as $key => $value) {
    if (is_string($value) && isset($view_fields[$value])) {
      $this->options_node[$key] = $view_fields[$value]->field;
    }
  }
}