function _imce_mkdir_form in IMCE Mkdir 6
Same name and namespace in other branches
- 7 imce_mkdir.inc \_imce_mkdir_form()
Mkdir form.
1 call to _imce_mkdir_form()
- imce_mkdir_form in ./
imce_mkdir.module - Mkdir form.
File
- ./
imce_mkdir.inc, line 30
Code
function _imce_mkdir_form(&$form_state, &$imce) {
$mkdir['html1']['#value'] = '<div class="container-inline">';
$mkdir['dirname'] = array(
'#type' => 'textfield',
'#title' => t('Subdirectory name'),
'#size' => 12,
'#maxlength' => 255,
);
if (imce_perm_exists($imce, 'mkdir')) {
$mkdir['mkdir'] = array(
'#type' => 'submit',
'#value' => t('Add'),
'#submit' => $imce['perm']['mkdir'] ? array(
'imce_mkdir_submit',
) : NULL,
);
}
if (imce_perm_exists($imce, 'rmdir')) {
$mkdir['rmdir'] = array(
'#type' => 'submit',
'#value' => t('Remove'),
'#submit' => $imce['perm']['rmdir'] ? array(
'imce_mkdir_rmdir_submit',
) : NULL,
);
}
$mkdir['html2']['#value'] = '</div>';
$form['fset_mkdir'] = array(
'#type' => 'fieldset',
'#title' => t('Directory'),
) + $mkdir;
$form['#action'] = $imce['url'];
return $form;
}