You are here

function photos_admin_import in Album Photos 6.2

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

File

inc/photos.admin.inc, line 582

Code

function photos_admin_import(&$form_state) {
  $form['pid'] = array(
    '#title' => t('Upload to album'),
    '#type' => 'select',
    '#options' => _photos_useralbum_option(),
    '#required' => TRUE,
    '#prefix' => '<div id="photos-pid">',
    '#suffix' => '</div>',
  );
  $form['url'] = array(
    '#title' => t('Filepath'),
    '#type' => 'textfield',
    '#description' => t('From the server directory into zip files, to extract. You can upload images to a directory server, enter here path, you can extract and add to the album phtos. Path such as: !zip/test.zip. Documents must be read and write, php can operate.'),
    '#required' => TRUE,
  );
  $form['title'] = array(
    '#type' => 'textfield',
    '#title' => t('Image title'),
  );
  $form['des'] = array(
    '#type' => 'textarea',
    '#title' => t('Image description'),
    '#cols' => 40,
    '#rows' => 3,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Confirm import'),
  );
  $form['#validate'] = array(
    'photos_admin_import_validate',
  );
  return $form;
}