You are here

function rolereference_field_info in Role Reference 7

Same name and namespace in other branches
  1. 5 rolereference.module \rolereference_field_info()
  2. 6 rolereference.module \rolereference_field_info()

Implements hook_field_info().

File

./rolereference.module, line 6

Code

function rolereference_field_info() {
  return array(
    'rolereference' => array(
      'label' => t('Role reference'),
      'description' => t('This field stores the ID of a related role as an integer value.'),
      'settings' => array(
        'referenceable_roles' => array(),
      ),
      'default_widget' => 'options_select',
      'default_formatter' => 'rolereference_default',
      'property_type' => 'integer',
    ),
  );
}