function update_manager_install_form_validate
update_manager_install_form_validate($form, &$form_state)
Form validation handler for update_manager_install_form().
See also
update_manager_install_form_submit()
Related topics
File
- modules/update/update.manager.inc, line 613
- Administrative screens and processing functions of the Update Manager module.
Code
function update_manager_install_form_validate($form, &$form_state) { if (!($form_state['values']['project_url'] XOR !empty($_FILES['files']['name']['project_upload']))) { form_set_error('project_url', t('You must either provide a URL or upload an archive file to install.')); } if ($form_state['values']['project_url']) { if (!valid_url($form_state['values']['project_url'], TRUE)) { form_set_error('project_url', t('The provided URL is invalid.')); } } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!update!update.manager.inc/function/update_manager_install_form_validate/7.x