function bueditor_role_form in BUEditor 6
Same name and namespace in other branches
- 6.2 admin/bueditor.admin.inc \bueditor_role_form()
- 7 admin/bueditor.admin.inc \bueditor_role_form()
Role-editor form
1 call to bueditor_role_form()
- bueditor_admin_form in ./
bueditor.admin.inc - Admin form.
File
- ./
bueditor.admin.inc, line 94
Code
function bueditor_role_form($role, $weight = TRUE, $core = TRUE) {
$form['name'] = array(
'#type' => 'markup',
'#value' => $role['name'],
);
if ($weight) {
$form['weight'] = $core ? array(
'#type' => 'markup',
'#value' => $role['weight'],
) : array(
'#type' => 'weight',
'#default_value' => $role['weight'],
);
}
$form['editor'] = array(
'#type' => 'select',
'#options' => bueditor_editor_options(),
'#default_value' => $role['editor'],
);
$form['alt'] = array(
'#type' => 'select',
'#options' => bueditor_editor_options(),
'#default_value' => $role['alt'],
);
return $form;
}