You are here

function imce_form_subdirectory in IMCE 6

Subdirectory creation form.

1 string reference to 'imce_form_subdirectory'
imce_menu in ./imce.module
Implementation of hook_menu().

File

inc/subdir.inc, line 6

Code

function imce_form_subdirectory(&$form_state) {
  $form['help'] = array(
    '#type' => 'markup',
    '#value' => t('<p>Here you can create subdirectories for your users. Multiple directory creation is possible at a time with the <strong>*</strong> character. For example, specifying <strong>user*/foo</strong> will create <strong>foo</strong> named directories under each directory starting with <strong>user</strong>. */foo*/bar will create bar named directories under directories starting with foo in each directory of file system path.</p>'),
  );
  $form['path'] = array(
    '#title' => t('Directory path'),
    '#type' => 'textfield',
    '#default_value' => isset($form_state['values']['path']) ? $form_state['values']['path'] : '',
    '#maxlength' => 255,
    '#field_prefix' => file_directory_path() . '/',
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Create'),
  );
  return $form;
}