function views_gantt_plugin_style_gantt::options_fields in Views Gantt 7
Same name and namespace in other branches
- 7.2 views_gantt_plugin_style_gantt.inc \views_gantt_plugin_style_gantt::options_fields()
Gets real names of fields that we put in style settings. If field come from Fields API, we get it's name. Otherwise (if field is 'node_title' for example) we get field alias.
1 call to views_gantt_plugin_style_gantt::options_fields()
- 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 476 - Contains the list style plugin.
Class
- views_gantt_plugin_style_gantt
- Style plugin to render Gantt charts.
Code
function options_fields() {
$this->option_fields = array();
$view_fields = $this->view->field;
foreach ($this->view->display_handler
->get_handlers('field') as $key => $handler) {
if (isset($view_fields[$key]) && isset($handler->field_info)) {
$this->option_fields[$key] = 'field_' . $key;
}
else {
$this->option_fields[$key] = $handler->field_alias;
}
}
}