You are here

function tinymce_user_get_profile in TinyMCE 6.2

Same name and namespace in other branches
  1. 5.2 tinymce.module \tinymce_user_get_profile()
  2. 5 tinymce.module \tinymce_user_get_profile()
  3. 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 762
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;
  }
}