You are here

function _twig_template_field_allowed_values in Twig Input Filter 7

Callback: returns allowed values for the Twig template field.

1 string reference to '_twig_template_field_allowed_values'
_twig_enable_field in ./twig.admin.inc
Callback: creates Twig template field instance for the given entity type and bundle.

File

./twig.field.inc, line 30
Field module functionality for the Twig module.

Code

function _twig_template_field_allowed_values() {
  $templates = _twig_get_db_templates();
  $keys = array_keys($templates);
  sort($keys);
  return array_combine($keys, $keys);
}