You are here

function _datex_schema_form_options in Datex 7.3

Same name and namespace in other branches
  1. 8 datex.inc.php \_datex_schema_form_options()

List of saved schemas plus 'default' and 'disabled' for form_options list.

7 calls to _datex_schema_form_options()
datex_date_field_formatter_settings_form_alter in ./datex_date.inc
Implements hook_date_field_formatter_settings_form_alter().
datex_date_field_widget_settings_form_alter in ./datex_date.inc
Implements hook_date_field_instance_settings_form_alter().
_datex_date_views_argument_handler_simple::options_form in ./datex.views.inc
Schema to use for the displayed date.
_datex_views_handler_argument_node_created_fulldate::options_form in ./datex.views.inc
Schema to use for the displayed date.
_datex_views_handler_argument_node_created_year::options_form in ./datex.views.inc
Schema to use for the displayed date.

... See full list

File

./datex.module, line 185
Datex main module file, Datex adds php-intl support to drupal.

Code

function _datex_schema_form_options() {
  $cfg = variable_get('datex_schema', []);
  $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;
}