function socialcalc_save in Sheetnode 7
Same name and namespace in other branches
- 5 socialcalc.inc \socialcalc_save()
- 6 socialcalc.inc \socialcalc_save()
- 7.2 socialcalc.inc \socialcalc_save()
8 calls to socialcalc_save()
- sheetnode_handler_field_editable::views_form in views/
sheetnode_handler_field_editable.inc - 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 the display in this style.
- sheetnode_raw_plugin_style::render in views/
sheetnode_raw_plugin_style.inc - Render the display in this style.
- sheetnode_text_import in modules/
sheetnode_text/ sheetnode_text.module - API function to import a URL.
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;
}