function sheetnode_handler_field_cell::render in Sheetnode 6
Same name and namespace in other branches
- 7.2 views/sheetnode_handler_field_cell.inc \sheetnode_handler_field_cell::render()
- 7 views/sheetnode_handler_field_cell.inc \sheetnode_handler_field_cell::render()
File
- views/
sheetnode_handler_field_cell.inc, line 20
Class
Code
function render($values) {
require_once drupal_get_path('module', 'sheetnode') . '/socialcalc.inc';
$sheet = $values->{$this->field_alias};
if (empty($sheet)) {
return NULL;
}
$sc = socialcalc_parse_values($sheet);
return isset($sc['cells'][$this->options['reference']]) ? $sc['cells'][$this->options['reference']]['datavalue'] : NULL;
}