You are here

function empty_page_callbacks_form_validate in Empty Page 7

Form validate handler for adding / editing an Empty Page callback.

_state

Parameters

array $form:

File

./empty_page.admin.inc, line 161
Administrative functionality for Empty Page module.

Code

function empty_page_callbacks_form_validate($form, &$form_state) {
  if (empty($form_state['values']['empty_page_callback_path'])) {
    form_set_error('empty_page_callback_path', t('You must provide an <em>Internal path</em> for your callback.'));
  }
}