You are here

function languagefield_field_formatter_info in Custom Language field 7

Implements hook_field_formatter_info().

@TODO: add suffix settings for icon formatter, see hook_field_formatter_settings_form() in countries.field.inc.

File

./languagefield.module, line 202
Provides a list of languages from ISO 639 standard. All variables of a $language-object can be found here: http://api.drupal.org/api/drupal/developer--globals.php/global/language

Code

function languagefield_field_formatter_info() {
  $formatters = array(
    'language_default' => array(
      'label' => t('Language field'),
      'field types' => array(
        'language_field',
      ),
      'settings' => array(
        'format' => array(
          'name' => 'name',
        ),
      ),
    ),
  );
  return $formatters;
}