You are here

function fckeditor_global_profile_save in FCKeditor - WYSIWYG HTML editor 5.2

Same name and namespace in other branches
  1. 6 fckeditor.module \fckeditor_global_profile_save()
1 call to fckeditor_global_profile_save()
fckeditor_admin in ./fckeditor.module
Controller for FCKeditor administrative settings.

File

./fckeditor.module, line 697
FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2007 Frederico Caldeira Knabben

Code

function fckeditor_global_profile_save($edit) {
  if (isset($edit['rank'])) {
    $edit['rank'] = explode('>', str_replace(' ', '', $edit['rank']));
  }
  db_query("DELETE FROM {fckeditor_settings} WHERE name = '%s' or name = '%s'", $edit['name'], $edit['old_name']);
  db_query("DELETE FROM {fckeditor_role} WHERE name = '%s' or name = '%s'", $edit['name'], $edit['old_name']);
  db_query("INSERT INTO {fckeditor_settings} (name, settings) VALUES ('%s', '%s')", $edit['name'], serialize($edit));
}