function languagefield_field_formatter_settings_form in Custom Language field 7
Implements hook_field_formatter_settings_form().
File
- ./
languagefield.module, line 216 - 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_settings_form($field, $instance, $view_mode, $form, &$form_state) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$element['format'] = array(
'#type' => 'checkboxes',
'#title' => t('Display'),
'#description' => t('Select the elements you want to show. The elements will be concatenated when showing the field.'),
'#default_value' => $settings['format'],
'#options' => _languagefield_settings_options(),
);
return $element;
}