You are here

function skinr_ui_admin_skins_validate in Skinr 6.2

Same name and namespace in other branches
  1. 8.2 skinr_ui/skinr_ui.admin.inc \skinr_ui_admin_skins_validate()
  2. 7.2 skinr_ui.admin.inc \skinr_ui_admin_skins_validate()

Validate skinr_ui_admin_skins form submissions.

Check if any skinr settings have been selected to perform the chosen 'Update option' on.

File

./skinr_ui.admin.inc, line 123
Admin page callbacks for the skinr module.

Code

function skinr_ui_admin_skins_validate($form, &$form_state) {
  $skinr_settings = array_filter($form_state['values']['skinr_settings']);
  if (count($skinr_settings) == 0) {
    form_set_error('', t('No items selected.'));
  }
}