You are here

function _field_rules_field_info in Field Rules 7

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

File

./field_rules.rules.inc, line 154

Code

function _field_rules_field_info() {
  $properties = array();
  $properties['id'] = array(
    'label' => t('Field Id'),
    'type' => 'integer',
    'description' => t('The unique ID of the field.'),
    'getter callback' => 'entity_property_verbatim_get',
  );
  $properties['field_name'] = array(
    'label' => t('Field name'),
    'type' => 'text',
    'description' => t('The machine name of this field.'),
    'setter callback' => 'entity_property_verbatim_set',
    'getter callback' => 'entity_property_verbatim_get',
  );
  $properties['type'] = array(
    'label' => t('Field type'),
    'type' => 'text',
    'description' => t('The type this field.'),
    'setter callback' => 'entity_property_verbatim_set',
    'setter permission' => 'administer content types',
    'getter callback' => 'entity_property_verbatim_get',
  );
  $properties['active'] = array(
    'label' => t('Active'),
    'type' => 'boolean',
    'description' => t('Whether the field is active.'),
    'setter callback' => 'entity_property_verbatim_set',
    'getter callback' => 'entity_property_verbatim_get',
  );
  $properties['locked'] = array(
    'label' => t('Locked'),
    'type' => 'boolean',
    'description' => t('Whether the field is locked.'),
    'setter callback' => 'entity_property_verbatim_set',
    'setter permission' => 'administer content types',
    'getter callback' => 'entity_property_verbatim_get',
  );
  $properties['cardinality'] = array(
    'label' => t('Cardinality'),
    'type' => 'integer',
    'description' => t('Field cardinality.'),
    'setter callback' => 'entity_property_verbatim_set',
    'setter permission' => 'administer content types',
    'getter callback' => 'entity_property_verbatim_get',
  );
  $properties['translatable'] = array(
    'label' => t('Translatable'),
    'type' => 'boolean',
    'description' => t('Whether the field is translatable.'),
    'setter callback' => 'entity_property_verbatim_set',
    'setter permission' => 'administer content types',
    'getter callback' => 'entity_property_verbatim_get',
  );
  return $properties;
}