You are here

function socialcalc_save in Sheetnode 7.2

Same name and namespace in other branches
  1. 5 socialcalc.inc \socialcalc_save()
  2. 6 socialcalc.inc \socialcalc_save()
  3. 7 socialcalc.inc \socialcalc_save()
8 calls to socialcalc_save()
sheetnode_handler_field_editable::views_form in views/sheetnode_handler_field_editable.inc
Append views form.
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
Render sheetnode plugin style.
sheetnode_raw_plugin_style::render in views/sheetnode_raw_plugin_style.inc
Render plugin style.
sheetnode_text_import in modules/sheetnode_text/sheetnode_text.module
API function to import a URL.

... See full list

File

./socialcalc.inc, line 566
SocialCalc manipulation functions.

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;
}