function tinymce_user_get_status in TinyMCE 5.2
Same name and namespace in other branches
- 5 tinymce.module \tinymce_user_get_status()
- 6.2 tinymce.module \tinymce_user_get_status()
- 6 tinymce.module \tinymce_user_get_status()
2 calls to tinymce_user_get_status()
- tinymce_config in ./
tinymce.module - Return an array of initial tinymce config options from the current role.
- tinymce_process_textarea in ./
tinymce.module - Attach tinymce to a textarea
File
- ./
tinymce.module, line 1121 - Integrate the TinyMCE editor (http://tinymce.moxiecode.com/) into Drupal.
Code
function tinymce_user_get_status($user, $profile) {
$settings = $profile->settings;
if ($settings['user_choose']) {
$status = isset($user->tinymce_status) ? $user->tinymce_status : (isset($settings['default']) ? $settings['default'] : 'false');
}
else {
$status = isset($settings['default']) ? $settings['default'] : 'false';
}
return $status;
}