function photos_admin_import in Album Photos 7.3
Same name and namespace in other branches
- 6.2 inc/photos.admin.inc \photos_admin_import()
Upload to album form.
1 string reference to 'photos_admin_import'
- photos_menu in ./
photos.module - Implements hook_menu().
File
- inc/
photos.admin.inc, line 471 - Admin settings form(s) and submit handler.
Code
function photos_admin_import($form, &$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;
}