function skinr_ui_admin_skins_validate in Skinr 8.2
Same name and namespace in other branches
- 6.2 skinr_ui.admin.inc \skinr_ui_admin_skins_validate()
- 7.2 skinr_ui.admin.inc \skinr_ui_admin_skins_validate()
Form validation handler for skinr_ui_list().
Check if any skinr settings have been selected to perform the chosen 'Update option' on.
File
- skinr_ui/
skinr_ui.admin.inc, line 335 - Admin page callbacks for the Skinr UI module.
Code
function skinr_ui_admin_skins_validate($form, &$form_state) {
// Error if there are no items to select.
if (!is_array($form_state['values']['skins']) || !count(array_filter($form_state['values']['skins']))) {
form_set_error('', t('No items selected.'));
}
}