imce_role_form($role, $weight = TRUE, $core = TRUE)
imce/inc/admin.inc, line 424
Role-profile form
<?php
function imce_role_form($role, $weight = TRUE, $core = TRUE) {
$form['name'] = array(
'#type' => 'markup',
'#value' => $role['name'],
);
if ($weight) {
$form['weight'] = $core ? array(
'#type' => 'textfield',
'#value' => $role['weight'],
'#attributes' => array('readonly' => 'readonly', 'style' => 'border: none; width: 2em; background-color: transparent;'),
) : array(
'#type' => 'weight',
'#default_value' => $role['weight'],
);
}
$form['pid'] = array(
'#type' => 'select',
'#options' => imce_profile_options(),
'#default_value' => $role['pid'],
);
return $form;
}
?>