function prevnext_field_extra_fields in Prevnext 7
Implements hook_field_extra_fields().
File
- ./
prevnext.module, line 102 - prevnext.module
Code
function prevnext_field_extra_fields() {
$enabled_nodetypes = array_filter(variable_get('prevnext_enabled_nodetypes', array()));
if (!empty($enabled_nodetypes)) {
$extra = array();
foreach ($enabled_nodetypes as $key => $value) {
$extra['node'][$key]['display']['prevnext_previous'] = array(
'label' => t('Previous'),
'description' => t('Previous node indicator'),
'weight' => 50,
);
$extra['node'][$key]['display']['prevnext_next'] = array(
'label' => t('Next'),
'description' => t('Next node indicator'),
'weight' => 50,
);
}
return $extra;
}
}