function apdqc_disable_form in Asynchronous Prefetch Database Query Cache 7
Disable all form elements.
Parameters
array $form: Array of form elements.
1 call to apdqc_disable_form()
- apdqc_admin_operations_form in ./
apdqc.admin.inc - Form builder; perform apdqc operations.
File
- ./
apdqc.admin.inc, line 368 - Admin page callbacks for the apdqc module.
Code
function apdqc_disable_form(array &$form) {
$keys = element_children($form);
foreach ($keys as &$key) {
$form[$key]['#disabled'] = TRUE;
apdqc_disable_form($form[$key]);
}
}