function tablefield_get_table_value in TableField 7.2
Same name and namespace in other branches
- 7.3 tablefield.module \tablefield_get_table_value()
Get the property just as it is set in the data. Search API indexing addition.
1 string reference to 'tablefield_get_table_value'
- tablefield_item_property_info in ./
tablefield.module - Define metadata about item properties. Search API indexing addition.
File
- ./
tablefield.module, line 224 - Provides a set of fields that can be used to store tabular data with a node.
Code
function tablefield_get_table_value($data, array $options, $name, $type, $info) {
if (isset($data['tabledata'])) {
$data['value'] = '';
foreach ($data['tabledata'] as $rows) {
$data['value'] .= implode(" ", $rows) . " ";
}
}
return trim($data['value']);
}