function _datex_machine_name in Datex 7.2
Datex form element validation for schema name.
1 string reference to '_datex_machine_name'
- datex_admin_form in ./
datex.admin.inc - Provides administration form for datex module (menu callback).
File
- ./
datex.admin.inc, line 270
Code
function _datex_machine_name($value, $element, $form_state) {
$machine = $form_state['values']['datex_new_schema_machine_name'];
$datex = array(
'default',
'disabled',
);
if (in_array($machine, $datex) || in_array($machine, _datex_schema_list())) {
return TRUE;
}
return FALSE;
}