function bueditor_button_import_form in BUEditor 6.2
Same name and namespace in other branches
- 7 admin/bueditor.admin.inc \bueditor_button_import_form()
Button import form.
1 call to bueditor_button_import_form()
- bueditor_editor_form in admin/
bueditor.admin.inc - Editor form.
File
- admin/
bueditor.admin.inc, line 447
Code
function bueditor_button_import_form() {
$form['importcsv'] = array(
'#type' => 'file',
'#title' => t('CSV file containing the buttons'),
);
$form['importcode'] = array(
'#type' => 'textarea',
'#title' => t('Editor code'),
'#rows' => 10,
'#description' => t('Enter previously exported editor code.') . ' ' . t('The code will be scanned for only buttons and all other data will be ignored.') . '<div class="warning">' . t('This code will be evaluated as PHP, therefore you must be sure that it is harmless and produces proper editor data.') . '</div>',
);
$form['import'] = array(
'#type' => 'submit',
'#value' => t('Import'),
'#submit' => array(
'bueditor_button_import_submit',
),
);
return $form;
}