In this snippet we will mark the obligatory fields present as non-obligatory, and it will be under the condition that the user actually has the role of administrator.
This snippet disables the rich text in Drupal 7 for all the fields of type text or large text. Additionally, it disables the CKEditor toolbar like the selection of the text format