You are here

function sharerich_field_extra_fields in Sharerich 7

Same name and namespace in other branches
  1. 7.3 sharerich.module \sharerich_field_extra_fields()
  2. 7.2 sharerich.module \sharerich_field_extra_fields()

Implements hook_field_extra_fields().

1 call to sharerich_field_extra_fields()
sharerich_node_view in ./sharerich.module
Implements hook_node_view().

File

./sharerich.module, line 301

Code

function sharerich_field_extra_fields() {
  $extra = array();
  foreach (node_type_get_types() as $node) {
    if (variable_get('sharerich_node_' . $node->type, FALSE)) {
      $extra['node'][$node->type]['display'] = array(
        'sharerich' => array(
          'label' => t('Sharerich'),
          'description' => t('This is a fake field, you can configure it on each Display.'),
          'weight' => 100,
          'visible' => TRUE,
        ),
      );
    }
  }
  return $extra;
}