Defines the following hooks:
Returns an array containing definitions of the taxon formatter types defined by a module. For example: function nbn_map_taxon_formatter_types() { $formatter = array( 'nbn_map' => array( 'title' => t('NBN Map'), // field type is TVK, TLIK or BRC (+GBIF?) 'field_type' => 'TVK', // function that generates the form using Forms API, with arguments for the current settings values, type name (e.g. nbn_map) and optional $args 'form_callback' => 'nbn_map_taxon_formatter_settings_form', 'form_args' => array() // can be used to pass arguments to the form ) ); return $formatter; }
The system assumes a theme function called theme_
function nbn_map_theme() { $theme = array(); $theme["nbn_map_taxon_formatter_output"] = array( 'arguments' => array('element' => NULL), ); return $theme; }