You are here

function matrix_field_item_property_info in Matrix field 8.2

Same name and namespace in other branches
  1. 7.2 matrix.module \matrix_field_item_property_info()

Defines info for the properties of the matrix-field item data structure.

1 call to matrix_field_item_property_info()
matrix_field_property_info_callback in ./matrix.module
Additional callback to adapt the property info of matrix fields.

File

./matrix.module, line 1017
Contains matrix.module.

Code

function matrix_field_item_property_info() {
  $properties['row'] = array(
    'type' => 'integer',
    'label' => t('The row of the item'),
    'setter callback' => 'entity_property_verbatim_set',
  );
  $properties['col'] = array(
    'type' => 'integer',
    'label' => t('The column of the item.'),
    'setter callback' => 'entity_property_verbatim_set',
  );
  $properties['value'] = array(
    'type' => 'text',
    'label' => t('The value of the item.'),
    'setter callback' => 'entity_property_verbatim_set',
  );
  return $properties;
}