You are here

function popup_nodereference_field_formatter_info in Popup 7

Same name and namespace in other branches
  1. 8 modules/popup_nodereference/popup_nodereference.module \popup_nodereference_field_formatter_info()

Implementation of hook_field_formatter_info

File

modules/popup_nodereference/popup_nodereference.module, line 8

Code

function popup_nodereference_field_formatter_info() {
  module_load_include('inc', 'popup_ui', 'includes/popup_ui.admin');
  $formatters = array_keys(_popup_ui_formatter_settings());
  $formatter_info = array(
    'popup' => array(
      'label' => 'Popup',
      'field types' => array(
        'node_reference',
      ),
      'settings' => array(
        'popup_format' => array_shift($formatters),
        'popup_grouping' => TRUE,
      ),
    ),
  );
  return $formatter_info;
}