You are here

function bueditor_save_data in BUEditor 5

Save data to a file. return true on success.

1 call to bueditor_save_data()
bueditor_js_buttons in ./bueditor.module
Include buttons in a js file to support browser caching. if fails include them inline.

File

./bueditor.module, line 535

Code

function bueditor_save_data($data, $file) {
  return file_check_directory($dir = dirname($file), FILE_CREATE_DIRECTORY) && ($fp = @fopen($file, 'w')) && @fwrite($fp, $data) && @fclose($fp) && @chmod($file, 0664);
}