function photos_admin_import_validate in Album Photos 7.3
Same name and namespace in other branches
- 6.2 inc/photos.admin.inc \photos_admin_import_validate()
Validate upload to album form.
1 string reference to 'photos_admin_import_validate'
- photos_admin_import in inc/
photos.admin.inc - Upload to album form.
File
- inc/
photos.admin.inc, line 508 - Admin settings form(s) and submit handler.
Code
function photos_admin_import_validate($form, &$form_state) {
$value = new stdClass();
$value->pid = $form_state['values']['pid'];
$value->des = $form_state['values']['des'];
$value->title = $form_state['values']['title'];
if ($msg = _photos_unzip($form_state['values']['url'], $value)) {
drupal_set_message(check_plain($msg));
}
}