You are here

function classified_field_extra_fields in Classified Ads 7.3

Same name and namespace in other branches
  1. 6.3 classified.module \classified_field_extra_fields()

Implements hook_field_extra_fields().

Allow repositioning of the expires box.

File

./classified.module, line 921
A pure D7 classified ads module inspired by the ed_classified module.

Code

function classified_field_extra_fields() {
  $extra['node']['classified'] = array(
    'form' => array(
      'expires_fs' => array(
        'label' => t('Ad Expiration'),
        'description' => NULL,
        'weight' => 0,
      ),
    ),
    'display' => array(
      'expires' => array(
        'label' => t('Ad expiration'),
        'description' => t('Publication limit for ad'),
        'weight' => 2,
      ),
    ),
  );
  return $extra;
}