You are here

function sheetnode_text_import in Sheetnode 7.2

Same name and namespace in other branches
  1. 6 modules/sheetnode_text/sheetnode_text.module \sheetnode_text_import()
  2. 7 modules/sheetnode_text/sheetnode_text.module \sheetnode_text_import()

API function to import a URL.

1 call to sheetnode_text_import()
sheetnode_text_import_form_submit in modules/sheetnode_text/sheetnode_text.module
Submit handler for import form.

File

modules/sheetnode_text/sheetnode_text.module, line 86
Module file for the sheetnode_text module.

Code

function sheetnode_text_import($text, $options = array()) {
  module_load_include('inc', 'sheetnode', 'socialcalc');
  $sheet = array();
  sheetnode_text_import_table($text, $sheet, $options);
  $socialcalc = array(
    'sheet' => $sheet,
    'edit' => socialcalc_default_edit($sheet),
    'audit' => socialcalc_default_audit($sheet),
  );
  return socialcalc_save($socialcalc);
}