You are here

function rolereference_field_extract_info in Role Reference 7

Implements hook_field_extract_info().

This provides integration for the field_extract module, making it easy to get the value of a rolereference field.

Example: field_extract_value('node', $node, 'field_subscriber_role');

Return value

$extractors array: field_extract info for rolereference module.

File

./rolereference.module, line 290

Code

function rolereference_field_extract_info() {
  $extractors = array(
    'rolereference' => array(
      'options' => array(
        'key' => 'rid',
      ),
    ),
  );
  return $extractors;
}