You are here

function photos_admin_import_validate in Album Photos 6.2

Same name and namespace in other branches
  1. 7.3 inc/photos.admin.inc \photos_admin_import_validate()
1 string reference to 'photos_admin_import_validate'
photos_admin_import in inc/photos.admin.inc

File

inc/photos.admin.inc, line 615

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($msg);
  }
}