function _datex_schema_form_options in Datex 8
Same name and namespace in other branches
- 7.3 datex.module \_datex_schema_form_options()
List of saved schemas plus 'default' and 'disabled' for form_options list.
1 call to _datex_schema_form_options()
File
- ./
datex.inc.php, line 10
Code
function _datex_schema_form_options() {
$cfg = \Drupal::config('datex.schemas')
->get();
$cfg = array_keys($cfg);
$cfg_c = [];
foreach ($cfg as $value) {
if ($value[0] !== '_') {
$cfg_c[] = $value;
}
}
$cfg = $cfg_c;
$cfg = array_combine($cfg, $cfg);
return [
'disabled' => t('Disabled'),
'default' => t('Default'),
] + $cfg;
}