You are here

function inline_conditions_field_property_callback in Inline Conditions 7

Property callback for IC module.

1 string reference to 'inline_conditions_field_property_callback'
inline_conditions_field_info in ./inline_conditions.field.inc
Implements hook_field_info().

File

./inline_conditions.module, line 278
Extends Drupal 7 with a new field type to manage rules conditions directly from a field.

Code

function inline_conditions_field_property_callback(&$info, $entity_type, $field, $instance, $field_type) {

  // Apply the default behavior.
  entity_metadata_field_default_property_callback($info, $entity_type, $field, $instance, $field_type);

  // Alter both getter & setter callbacks.
  $property =& $info[$entity_type]['bundles'][$instance['bundle']]['properties'][$field['field_name']];
  $property['getter callback'] = 'inline_conditions_entity_metadata_field_property_get';
  $property['setter callback'] = 'inline_conditions_entity_metadata_field_property_set';
}