You are here

function nopremium_field_extra_fields in Node Option Premium 7

Implementation of hook_field_extra_fields().

File

./nopremium.module, line 228
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function nopremium_field_extra_fields() {
  $extra = array();
  foreach (node_type_get_types() as $type) {
    $extra['node'][$type->type] = array(
      'display' => array(
        'nopremium_message' => array(
          'label' => t('Premium message'),
          'description' => t('Node Option Premium module message.'),
          'weight' => 1,
        ),
      ),
    );
  }
  return $extra;
}