function sheetnode_text_import in Sheetnode 6
Same name and namespace in other branches
- 7.2 modules/sheetnode_text/sheetnode_text.module \sheetnode_text_import()
- 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 78
Code
function sheetnode_text_import($text, $options = array()) {
require_once drupal_get_path('module', 'sheetnode') . '/socialcalc.inc';
$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);
}