Bei Verwendung eines WYSIWYG-Editors (z.B. CKEditor) soll die Auswahl des Textformats für bestimmte Benutzerrollen ausgeblendet werden.
Die einfachste Lösung ist ein Ausblenden über CSS.
Das CSS Snippet wir am besten über hook form_alter für die entsprechende Node Form mit drupal_add_css inline hinzugefügt:
/**
* implementation hook form_alter()
*/
function MYMODULENAME_form_alter(&$form, &$form_state, $form_id) {
global $user;
switch ($form_id) {
case 'my_node_form':
if (isset($user->roles[MYROLEID])) {
// Input Format Body WYSIWYG
$form['body'][LANGUAGE_NONE][0]['#format'] = 'wysiwyg';
// Auswahl ausschalten
$css = '.filter-wrapper {display: none;}';
drupal_add_css($css, 'inline');
} break;
}
}