You are here

function headerimage_field_extra_fields in Header image 7

Implements hook_field_extra_fields().

File

./headerimage.module, line 444
headerimage.module Conditionally display an node in a block.

Code

function headerimage_field_extra_fields() {
  $info = array();
  foreach (node_type_get_types() as $node_type) {
    if (in_array($node_type->type, variable_get('headerimage_node_type', array()), true)) {
      $info['node'][$node_type->type]['form']['headerimage'] = array(
        'label' => t('Header image'),
        'description' => t('Header image form elements'),
        'weight' => 0,
      );
    }
  }
  return $info;
}