function socialcalc_parse in Sheetnode 7
Same name and namespace in other branches
- 5 socialcalc.inc \socialcalc_parse()
- 6 socialcalc.inc \socialcalc_parse()
- 7.2 socialcalc.inc \socialcalc_parse()
8 calls to socialcalc_parse()
- sheetnode_field_is_empty in ./
sheetnode.module - Implements hook_field_is_empty().
- sheetnode_plugin_style::merge_annotation in views/
sheetnode_plugin_style.inc - sheetnode_plugin_style::render_sheet in views/
sheetnode_plugin_style.inc - sheetnode_tokens in ./
sheetnode.module - Implements hook_tokens().
- _sheetnode_phpexcel_export in modules/
sheetnode_phpexcel/ sheetnode_phpexcel.export.inc - Helper function to export a node using PHPExcel.
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;
}