You are here

function filebrowser_form_create_folder in Filebrowser 6.2

Same name and namespace in other branches
  1. 8 filebrowser.module \filebrowser_form_create_folder()
  2. 7.4 filebrowser.module \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
Implementation of hook_init().

File

./filebrowser.form.create_folder.inc, line 25

Code

function filebrowser_form_create_folder($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'] = $node;
  $form['#submit'][] = 'filebrowser_form_create_folder_submit';
  $form['#validate'][] = 'filebrowser_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;
}