function _datex_element_schema in Datex 8
Same name and namespace in other branches
- 7.3 datex.module \_datex_element_schema()
Find the datex schema set for a field (or element, or views filter, or...), or the global schema of none is set.
File
- ./
datex.inc.php, line 31
Code
function _datex_element_schema($e) {
$ret = NULL;
if (!is_array($e)) {
$ret = NULL;
}
elseif (isset($e['datex_schema'])) {
$ret = $e['datex_schema'];
}
else {
$ret = 'default';
}
return empty($ret) ? 'default' : $ret;
}