You are here

function redhen_org_field_extra_fields in RedHen CRM 7

Implements hook_field_extra_fields().

File

modules/redhen_org/redhen_org.module, line 630

Code

function redhen_org_field_extra_fields() {
  $extra = array();
  foreach (redhen_org_get_types() as $type => $org_type) {
    $extra['redhen_org'][$type] = array(
      'form' => array(
        'name' => array(
          'label' => t('Organization name'),
          'description' => t('Organization name'),
          'weight' => 0,
        ),
      ),
      'display' => array(
        'name' => array(
          'label' => t('Name'),
          'description' => t('Organization name.'),
          'weight' => 0,
        ),
        'redhen_state' => array(
          'label' => t('State'),
          'description' => t('Organization state'),
          'weight' => 0,
        ),
        'primary_contact' => array(
          'label' => t('Primary Contact'),
          'description' => t('Primary contact display'),
          'weight' => 0,
        ),
      ),
    );
  }
  return $extra;
}