function regcode_field_extra_fields in Registration codes 7
Same name and namespace in other branches
- 7.2 regcode.module \regcode_field_extra_fields()
Implements hook_field_extra_fields().
File
- ./regcode.module, line 140 
- Main functionality and hooks of regcode module.
Code
function regcode_field_extra_fields() {
  $extra = array();
  $extra['user']['user'] = array(
    'form' => array(
      'regcode' => array(
        'label' => t('Registration code'),
        'description' => t('Registration code form elements.'),
        'weight' => -10,
      ),
    ),
    'display' => array(
      'regcode' => array(
        'label' => t('Registration code history'),
        'description' => t('Registration code history view element.'),
        'weight' => 5,
      ),
    ),
  );
  return $extra;
}