You are here

function filebrowser_form_create_folder in Filebrowser 7.4

Same name and namespace in other branches
  1. 8 filebrowser.module \filebrowser_form_create_folder()
  2. 6.2 filebrowser.form.create_folder.inc \filebrowser_form_create_folder()
  3. 7.2 filebrowser.module \filebrowser_form_create_folder()
  4. 7.3 filebrowser.module \filebrowser_form_create_folder()
1 string reference to 'filebrowser_form_create_folder'
filebrowser_view in ./filebrowser.module
Implements hook_init(). @inheritdoc

File

./filebrowser.module, line 745

Code

function filebrowser_form_create_folder($form, $form_state, $node) {
  $form = array();
  $form['filebrowser_create_folder'] = array(
    '#type' => 'fieldset',
    '#title' => t('Create a folder'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
    '#description' => t('This folder will be created within the current directory.'),
    '#weight' => 30,
  );
  $form['node'] = array(
    '#type' => 'value',
    '#value' => $node,
  );
  $form['#submit'][] = 'filebrowser_form_create_folder_submit';
  $form['#validate'][] = 'filebrowser_form_create_folder_validate';
  $form['filebrowser_create_folder']['folder_name'] = array(
    '#type' => 'textfield',
    '#title' => t('Folder Name'),
    '#size' => 40,
    '#required' => TRUE,
  );
  $form['filebrowser_create_folder']['description'] = array(
    '#type' => 'textarea',
    '#title' => t('Description'),
    '#size' => 255,
  );
  $form['submitted'] = array(
    '#tree' => TRUE,
  );
  $form['filebrowser_create_folder']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Create'),
  );
  return $form;
}