function sheetnode_plugin_style::find_field in Sheetnode 6
Same name and namespace in other branches
- 7.2 views/sheetnode_plugin_style.inc \sheetnode_plugin_style::find_field()
- 7 views/sheetnode_plugin_style.inc \sheetnode_plugin_style::find_field()
1 call to sheetnode_plugin_style::find_field()
File
- views/
sheetnode_plugin_style.inc, line 465
Class
Code
function find_field($field_name) {
if (isset($this->view->field[$field_name])) {
return $field_name;
}
foreach ($this->view->field as $field => $info) {
if ($info->field_alias == $field_name) {
return $field;
}
if (strcasecmp($info
->label(), $field_name) == 0) {
return $field;
}
if (method_exists($info, 'ui_name') && strcasecmp($info
->ui_name(), $field_name) == 0) {
return $field;
}
}
return FALSE;
}