You are here

function _datax_schema_table_validate in Datex 7.2

Datex admin form table select element validate.

So the user does not remove default schema.

1 string reference to '_datax_schema_table_validate'
datex_admin_form in ./datex.admin.inc
Provides administration form for datex module (menu callback).

File

./datex.admin.inc, line 216

Code

function _datax_schema_table_validate($element, $form_state) {
  $v = drupal_array_get_nested_value($form_state['values'], $element['#parents']);
  if ($v['default'] === 'default') {
    form_set_error($element['#name'], t('You can not remove default schema'));
  }
}