You are here

function term_level_options_list in Term Level Field 7

Implements hook_options_list().

2 calls to term_level_options_list()
term_level_field_formatter_view in ./term_level.module
Implements hook_field_formatter_view().
term_level_field_widget_form in ./term_level.module
Implements hook_field_widget_form().

File

./term_level.module, line 71
Field type for referencing terms with a level to an entity.

Code

function term_level_options_list($field) {
  $levels = _term_level_extract_levels($field['settings']['levels']);
  if (module_exists('i18n_field')) {
    $levels = i18n_string_translate(array(
      'field',
      $field['field_name'],
      '#levels',
    ), $levels);
  }
  return $levels;
}