node_field_extra_fields

Versions
mediamosa-21
node_field_extra_fields()

Implements hook_field_extra_fields().

Code

modules/node/node.module, line 606

<?php
function node_field_extra_fields() {
  $extra = array();

  foreach (node_type_get_types() as $type) {
    if ($type->has_title) {
      $extra['node'][$type->type] = array(
        'title' => array(
          'label' => $type->title_label,
          'description' => t('Node module element.'),
          'weight' => -5,
        ),
      );
    }
  }

  return $extra;
}
?>