function filebrowser_form_actions in Filebrowser 6.2
Same name and namespace in other branches
- 8 filebrowser.module \filebrowser_form_actions()
- 7.4 filebrowser.module \filebrowser_form_actions()
- 7.2 filebrowser.module \filebrowser_form_actions()
- 7.3 filebrowser.module \filebrowser_form_actions()
1 string reference to 'filebrowser_form_actions'
- theme_dir_listing_list_view in ./
filebrowser.theme.inc - Theming function for list view.
File
- ./
filebrowser.form.actions.inc, line 24
Code
function filebrowser_form_actions($form_state, $table, $actions, $node) {
$form = array();
$form['#node'] = $node;
$form['table'] = array(
'#value' => $table,
);
foreach ($node->file_listing as $file_name => $data) {
$form["select_{$data['fid']}"] = array(
'#type' => 'checkbox',
'#prefix' => '<!-- ',
'#suffix' => ' -->',
);
}
$options = array(
'' => t('choose an action'),
);
foreach ($actions as $action) {
$options[$action['operation']] = $action['title'];
}
$form['action'] = array(
'#prefix' => '<br/><div class="container-inline">',
'#title' => t('actions'),
'#type' => 'select',
'#options' => $options,
);
$form['submit'] = array(
'#value' => t('Process'),
'#type' => 'submit',
'#suffix' => '</div><br/>',
);
return $form;
}