You are here

function sarnia_field_extra_fields in Sarnia 7

Implements hook_field_extra_fields().

File

./sarnia.module, line 651

Code

function sarnia_field_extra_fields() {
  $extra = array();
  foreach (sarnia_entity_types() as $name => $info) {
    $extra[$name][$name]['display'] = array(
      'sarnia_id' => array(
        'label' => t('Sarnia: Id'),
        'description' => t('The Sarnia entity id.'),
        'weight' => 99,
      ),
      'sarnia_solr_properties' => array(
        'label' => t('Sarnia: Solr properties'),
        'description' => t('The full set of Solr properties associated with this entity. Useful for debugging purposes.'),
        'weight' => 100,
      ),
    );
  }
  return $extra;
}