You are here

function ad_field_extra_fields in Advertisement 7.2

Implements hook_field_extra_fields().

File

./ad.module, line 56
Defines the core ad entity, including the entity itself, the bundle definitions (ad types), and various API functions to manage ads and interact with them through forms and autocompletes.

Code

function ad_field_extra_fields() {
  $extra = array();
  foreach (ad_types() as $type => $ad_type) {
    $extra['ad'][$type] = array(
      'title' => array(
        'label' => 'Title',
        'description' => t('Ad module title form element'),
        'weight' => -5,
      ),
      'status' => array(
        'label' => 'Status',
        'description' => t('Ad module status form element'),
        'weight' => 35,
      ),
    );
  }
  return $extra;
}