You are here

function tablefield_value_array_get in TableField 7.3

Get the value property in formatted array.

1 string reference to 'tablefield_value_array_get'
tablefield_item_property_info in ./tablefield.module
Define metadata about item properties. Search API indexing addition.

File

./tablefield.module, line 270
Provides a set of fields that can be used to store tabular data with a node.

Code

function tablefield_value_array_get($data, array $options, $name, $type, $info) {
  if (isset($data['tabledata']['tabledata'])) {
    $data['value'] = tablefield_tablefield_to_array($data['tabledata']['tabledata']);
  }
  elseif (isset($data['tablefield']['tabledata'])) {
    $data['value'] = tablefield_tablefield_to_array($data['tablefield']['tabledata']);
  }
  return $data['value'];
}