function _sheetnode_phpexcel_export in Sheetnode 5
Same name and namespace in other branches
- 6 modules/sheetnode_phpexcel/sheetnode_phpexcel.export.inc \_sheetnode_phpexcel_export()
- 7.2 modules/sheetnode_phpexcel/sheetnode_phpexcel.export.inc \_sheetnode_phpexcel_export()
- 7 modules/sheetnode_phpexcel/sheetnode_phpexcel.export.inc \_sheetnode_phpexcel_export()
1 string reference to '_sheetnode_phpexcel_export'
- sheetnode_phpexcel_menu in modules/
sheetnode_phpexcel/ sheetnode_phpexcel.module - Implementation of hook_menu().
File
- modules/
sheetnode_phpexcel/ sheetnode_phpexcel.export.inc, line 3
Code
function _sheetnode_phpexcel_export($format, $nid = NULL) {
require_once drupal_get_path('module', 'sheetnode') . '/socialcalc.inc';
$node = node_load($nid);
if (!$node || $node->type != 'sheetnode') {
return drupal_not_found();
}
return _sheetnode_phpexcel_export_do($format, $node->title, socialcalc_parse(_sheetnode_load($node->nid, $node->vid)));
}