You are here

function pack_upload_settings_form in Pack & Upload 7

Form constructor for the pack and upload settings form.

1 string reference to 'pack_upload_settings_form'
pack_upload_menu in ./pack_upload.module
Implements hook_menu().

File

./pack_upload.module, line 160
This is the module file for pack and upload.

Code

function pack_upload_settings_form() {
  $form['panel'] = array(
    '#title' => t('Bulk Media Uploader'),
    '#type' => 'fieldset',
    '#collapsible' => TRUE,
  );
  $form['panel']['pack_upload_bulk_media_path'] = array(
    '#title' => t('Bulk Media Extraction Path'),
    '#type' => 'textfield',
    '#required' => TRUE,
    '#description' => t('Path to media directory from content feeder would upload media to nodes. Example: public://bulk_media'),
    '#default_value' => variable_get('pack_upload_bulk_media_path', 'bulk_media'),
    '#after_build' => array(
      'system_check_directory',
    ),
  );
  return system_settings_form($form);
}