You are here

function skinr_ui_admin_skins_validate in Skinr 7.2

Same name and namespace in other branches
  1. 8.2 skinr_ui/skinr_ui.admin.inc \skinr_ui_admin_skins_validate()
  2. 6.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.

1 string reference to 'skinr_ui_admin_skins_validate'
skinr_ui_admin_skins in ./skinr_ui.admin.inc
Form builder: Builds the skin configuration administration overview.

File

./skinr_ui.admin.inc, line 534
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.'));
  }
}