You are here

function socialcalc_save in Sheetnode 6

Same name and namespace in other branches
  1. 5 socialcalc.inc \socialcalc_save()
  2. 7.2 socialcalc.inc \socialcalc_save()
  3. 7 socialcalc.inc \socialcalc_save()
8 calls to socialcalc_save()
sheetnode_content_generate in ./sheetnode.module
Implementation of hook_content_generate().
sheetnode_html_import in modules/sheetnode_html/sheetnode_html.module
API function to import a URL.
sheetnode_plugin_style::render in views/sheetnode_plugin_style.inc
sheetnode_raw_plugin_style::render in views/sheetnode_raw_plugin_style.inc
sheetnode_text_import in modules/sheetnode_text/sheetnode_text.module
API function to import a URL.

... See full list

File

./socialcalc.inc, line 466
SocialCalc manipulation functions Translated from socialcalc-3.js and companion files

Code

function socialcalc_save($sc) {
  $result = "socialcalc:version:1.0\n" . "MIME-Version: 1.0\nContent-Type: multipart/mixed; boundary=" . SOCIALCALC_MULTIPART_BOUNDARY . "\n" . "--" . SOCIALCALC_MULTIPART_BOUNDARY . "\nContent-type: text/plain; charset=UTF-8\n\n" . "# SocialCalc Spreadsheet Control Save\nversion:1.0\npart:sheet\npart:edit\npart:audit\n" . "--" . SOCIALCALC_MULTIPART_BOUNDARY . "\nContent-type: text/plain; charset=UTF-8\n\n" . socialcalc_save_sheet($sc['sheet']) . "--" . SOCIALCALC_MULTIPART_BOUNDARY . "\nContent-type: text/plain; charset=UTF-8\n\n" . socialcalc_save_edit($sc['edit']) . "--" . SOCIALCALC_MULTIPART_BOUNDARY . "\nContent-type: text/plain; charset=UTF-8\n\n" . socialcalc_save_audit($sc['audit']) . "--" . SOCIALCALC_MULTIPART_BOUNDARY . "--\n";
  return $result;
}