function tinymce_user_get_profile in TinyMCE 5
Same name and namespace in other branches
- 5.2 tinymce.module \tinymce_user_get_profile()
- 6.2 tinymce.module \tinymce_user_get_profile()
- 6 tinymce.module \tinymce_user_get_profile()
1 call to tinymce_user_get_profile()
- tinymce_user in ./
tinymce.module - Implementation of hook_user().
File
- ./
tinymce.module, line 1142 - Integrate the TinyMCE editor (http://tinymce.moxiecode.com/) into Drupal.
Code
function tinymce_user_get_profile($account) {
$profile_name = db_result(db_query('SELECT s.name FROM {tinymce_settings} s INNER JOIN {tinymce_role} r ON r.name = s.name WHERE r.rid IN (%s)', implode(',', array_keys($account->roles))));
if ($profile_name) {
return tinymce_profile_load($profile_name);
}
else {
return FALSE;
}
}