You are here

function _nodehierarchy_content_extra_fields in Node Hierarchy 7.4

Implements hook_content_extra_fields().

1 call to _nodehierarchy_content_extra_fields()
nodehierarchy_content_extra_fields in ./nodehierarchy.module
Implements hook_content_extra_fields().

File

./nodehierarchy.admin.inc, line 833
Admin functions for Node Hierarchy

Code

function _nodehierarchy_content_extra_fields($type_name) {
  $extra = array();
  if (nodehierarchy_node_can_be_child($type_name) || nodehierarchy_node_can_be_parent($type_name)) {
    $extra['nodehierarchy'] = array(
      'label' => t('Node Hierarchy settings'),
      'description' => t('Node Hierarchy module form.'),
      'weight' => 10,
    );
  }
  return $extra;
}