You are here

function flippy_field_extra_fields in Flippy 7

Implements hook_field_extra_fields().

File

./flippy.module, line 272
Allows administrators to add previous/next pagers to any node type.

Code

function flippy_field_extra_fields() {
  $extra = array();
  foreach (node_type_get_names() as $type => $name) {
    if (variable_get('flippy_' . $type, NULL)) {
      $extra['node'][$type] = array(
        'display' => array(
          'flippy_pager' => array(
            'label' => t('Pager'),
            'description' => t('Flippy module content pager.'),
            'weight' => 5,
          ),
        ),
      );
    }
  }
  return $extra;
}