function cmis_browser_actions_form in CMIS API 6.3
Same name and namespace in other branches
- 6.4 cmis_browser/cmis_browser.module \cmis_browser_actions_form()
- 6.2 cmis_browser/cmis_browser.module \cmis_browser_actions_form()
- 7.2 cmis_browser/cmis_browser.module \cmis_browser_actions_form()
- 7 cmis_browser/cmis_browser.module \cmis_browser_actions_form()
Implementation of hook_form()
1 string reference to 'cmis_browser_actions_form'
- theme_cmis_browser in cmis_browser/
cmis_browser.theme.inc
File
- cmis_browser/
cmis_browser.module, line 127
Code
function cmis_browser_actions_form($form_state) {
$form['#attributes']['enctype'] = 'multipart/form-data';
$form['actions'] = array(
'#type' => 'fieldset',
'#title' => t('Actions'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['actions']['folder_create'] = array(
'#type' => 'fieldset',
'#title' => t('Create folder'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['actions']['folder_create']['folder_name'] = array(
'#type' => 'textfield',
'#title' => t('Folder name'),
);
$form['actions']['folder_create']['folder_create_button'] = array(
'#type' => 'submit',
'#name' => 'folder_create_action',
'#value' => t('Create new folder'),
);
$form['actions']['content_create'] = array(
'#type' => 'fieldset',
'#title' => t('Create content'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['actions']['content_create']['content_name'] = array(
'#type' => 'textfield',
'#title' => t('Name'),
'#size' => 70,
);
$form['actions']['content_create']['content_body'] = array(
'#type' => 'textarea',
'#title' => t('Content'),
);
$form['actions']['content_create']['content_create_button'] = array(
'#type' => 'submit',
'#name' => 'content_create_action',
'#default_value' => 'Create',
);
$form['actions']['content_upload'] = array(
'#type' => 'fieldset',
'#title' => t('Upload content'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['actions']['content_upload']['file'] = array(
'#type' => 'file',
'#title' => t('Local file'),
);
$form['actions']['content_upload']['content_upload_button'] = array(
'#type' => 'submit',
'#name' => 'content_upload_action',
'#value' => t('Upload'),
);
return $form;
}