$_fckeditor_js_ids = array();
/**
- * Implementation of hook_help
+ * Implementation of hook_help()
*/
function fckeditor_help($section = '') {
if (strpos($section, 'admin/settings/fckeditor/edit/') === 0 || $section == 'admin/settings/fckeditor/add') {
}
/**
- * Implementation of hook_perm
+ * Implementation of hook_perm()
* Administer -> User management -> Access Control
*/
function fckeditor_perm() {
$xss_check = 1;
}
- $wysiwyg_link = '<div id="fck_'. $js_id .'"><textarea id="'. $js_id .'" cols="'.$element['#cols'].'" rows="'. $element['#rows'] .'">'. htmlspecialchars($element['#value']) .'</textarea></div>'."\n";
+ $wysiwyg_link = '<div id="fck_'. $js_id .'"><textarea id="'. $js_id .'" cols="'. $element['#cols'] .'" rows="'. $element['#rows'] .'">'. htmlspecialchars($element['#value']) .'</textarea></div>'."\n";
$wysiwyg_link .= "<a href=\"javascript:Toggle('{$js_id}','{$element['#id']}','". str_replace("'", "\\'", t("Switch to plain text editor")) ."','". str_replace("'", "\\'", t("Switch to rich text editor")) ."',". $xss_check .");\" id=\"switch_{$js_id}\" ". ($fckeditor_on?"style=\"display:none\"":"") .">";
$wysiwyg_link .= $fckeditor_on ? t("Switch to plain text editor") : t("Switch to rich text editor");
$wysiwyg_link .= "</a>";
}
function fckeditor_user_get_profile($user, $clear = FALSE) {
- static $profile_name = null;
+ static $profile_name = NULL;
- if ($clear === TRUE || $profile_name == null) {
+ if ($clear === TRUE || $profile_name == NULL) {
$profile_name = array();
}