Closed (fixed)
Project:
Bibliography Module
Version:
7.x-1.0-rc7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2013 at 15:31 UTC
Updated:
30 Jul 2013 at 07:44 UTC
Hi,
I have some code in a custom module that checks if a node exists with a pmid using
$dup = biblio_pm_check_pmid($pmid);
and if not, it uses list($nids, $dups) = biblio_pm_import_ids(array($pmid)); So I was testing the code and encountered this problem:
Fatal error: Call to undefined function biblio_save_node() in C:\wamp\www\drupal7\sites\all\modules\biblio\modules\pubmed\biblio_pm.module on line 328
(...)
22 0.6029 32891176 biblio_pm_import_ids( ) ..\my_module.module:26
23 1.9867 32980176 _biblio_pm_create_node_from_xml( ) ..\biblio_pm.module:257
I fixed by adding:
function _biblio_pm_create_node_from_xml($xml, $terms, $batch, $session_id) {
module_load_include('php', 'biblio_pm', 'EntrezPubmedArticle');
--> module_load_include('inc', 'biblio', 'includes/biblio.import.export');
$nids = array();Could you check it please?
Thanks
Oscar
Comments
Comment #1
omllobet commentedJust added module_load_include('inc', 'biblio', 'includes/biblio.import.export'); to my module, sorry for the noise.
Thanks
Oscar