You are here

function socialcalc_parse in Sheetnode 7.2

Same name and namespace in other branches
  1. 5 socialcalc.inc \socialcalc_parse()
  2. 6 socialcalc.inc \socialcalc_parse()
  3. 7 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
Merge sheetnode annotations to plugin style.
sheetnode_plugin_style::render_sheet in views/sheetnode_plugin_style.inc
Render views plugin style.
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.

... See full list

File

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

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