/ Published in: PHP

Just include
**global $user;** and
**$user->uid != 1** into the function
**global $user;** and
**$user->uid != 1** into the function
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function fckeditor_elements() { global $user; ), ); if (user_access('access fckeditor') && $user->uid != 1) { // only roles with permission get the fckeditor if (fckeditor_is_compatible_client()) { // it would be useless to dig deeper if we're not able or allowed to } } return $type; }
Comments
