You are here

function socialcalc_parse in Sheetnode 6

Same name and namespace in other branches
  1. 5 socialcalc.inc \socialcalc_parse()
  2. 7.2 socialcalc.inc \socialcalc_parse()
  3. 7 socialcalc.inc \socialcalc_parse()
7 calls to socialcalc_parse()
sheetnode_content_is_empty in ./sheetnode.module
Implementation of hook_content_is_empty().
sheetnode_plugin_style::render_sheet in views/sheetnode_plugin_style.inc
sheetnode_token_values in ./sheetnode.module
Implementation of hook_token_values().
_sheetnode_phpexcel_export in modules/sheetnode_phpexcel/sheetnode_phpexcel.export.inc
Helper function to export a node using PHPExcel.
_sheetnode_phpexcel_export_reference in modules/sheetnode_phpexcel/sheetnode_phpexcel.export.inc
Helper to export referenced sheet.

... See full list

File

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

Code

function socialcalc_parse($data) {
  $sc = array(
    'sheet' => NULL,
    'edit' => socialcalc_default_edit(),
    'audit' => socialcalc_default_audit(),
  );
  $parts = socialcalc_parse_parts($data);
  foreach ($parts as $name => $part) {
    $sc[$name] = call_user_func('socialcalc_parse_' . $name, $part);
  }
  return $sc;
}