You are here

function _field_rules_field_instance_info in Field Rules 7

1 call to _field_rules_field_instance_info()
field_rules_rules_data_info in ./field_rules.rules.inc
Implementation of hook_rules_data_info().

File

./field_rules.rules.inc, line 211

Code

function _field_rules_field_instance_info() {
  $properties = array();
  $properties['id'] = array(
    'label' => t('Field instance id'),
    'type' => 'integer',
    'description' => t('The unique ID of the field instance.'),
    'getter callback' => 'entity_property_verbatim_get',
  );
  $properties['field_id'] = array(
    'label' => t('Field Id'),
    'type' => 'integer',
    'description' => t('The id of the field this belongs to.'),
    'getter callback' => 'entity_property_verbatim_get',
    'setter permission' => 'administer content types',
  );
  $properties['field_name'] = array(
    'label' => t('Field name'),
    'type' => 'text',
    'description' => t('The machine name of this field.'),
    'getter callback' => 'entity_property_verbatim_get',
    'setter permission' => 'administer content types',
  );
  return $properties;
}