22
33/**
44 * @file
5- * This file describes the MM plugin as implemented by SBsys
5+ * This file describes the MM plugin as implemented by Agenda Management
66 */
77
88/**
@@ -34,7 +34,7 @@ function os2web_agman_esdh_mm_test($stuff) {
3434 */
3535function os2web_agman_esdh_mm_get_import_list () {
3636 /*
37- * For the SBsys service, we need to import meetings from xml files.
37+ * For the AGMAN service, we need to import meetings from xml files.
3838 * We will enumerate the list with the publication-id
3939 * as parsed from the dir name of the manifest.
4040 */
@@ -150,7 +150,7 @@ function os2web_agman_esdh_mm_import_meeting($meeting) {
150150 // Check if the committee is allowed to publish.
151151 $ publish_committee = array_map ('trim ' , explode (', ' , variable_get ('os2web_agman_esdh_approved_committees ' , MM_DEFAULT_APPROVED )));
152152 if ($ committee == '' || !in_array ($ committee , $ publish_committee )) {
153- watchdog ('SBsys MM ' , 'Ignored agenda from "%committee" . ' , array ('%committee ' => $ committee ));
153+ watchdog ('AGMAN MM ' , 'Ignored agenda from "%committee" . ' , array ('%committee ' => $ committee ));
154154 return FALSE ;
155155 }
156156
@@ -221,7 +221,7 @@ function os2web_agman_esdh_mm_import_meeting($meeting) {
221221 $ meeting ['pdf ' ] = (string ) $ meeting_pdf [0 ];
222222 $ meeting ['state ' ] = (string ) $ meeting_state [0 ];
223223 if (empty ($ meeting_agendas )) {
224- watchdog ('SBsys MM ' , 'Empty list of import items in %file. ' , array ('%file ' => $ file ), WATCHDOG_WARNING );
224+ watchdog ('AGMAN MM ' , 'Empty list of import items in %file. ' , array ('%file ' => $ file ), WATCHDOG_WARNING );
225225 }
226226
227227 foreach ($ meeting_agendas as $ meeting_agenda ) {
@@ -233,7 +233,7 @@ function os2web_agman_esdh_mm_import_meeting($meeting) {
233233 }
234234 }
235235 else {
236- watchdog ('SBsys MM ' , 'Failed to parse XML in %file during import. ' , array ('%file ' => $ file ), WATCHDOG_WARNING );
236+ watchdog ('AGMAN MM ' , 'Failed to parse XML in %file during import. ' , array ('%file ' => $ file ), WATCHDOG_WARNING );
237237 }
238238 }
239239 return $ meetings ;
@@ -269,7 +269,7 @@ function _os2web_agman_esdh_mm_import_meeting_agenda(&$meeting, $agenda_xml) {
269269 $ agenda += os2web_esdh_provider_default_meeting ();
270270 return $ agenda ;
271271 }
272- watchdog ('SBsys MM ' , 'File do not exist in folder. %file ' , array ('%file ' => $ xml_item_pdf ), WATCHDOG_WARNING );
272+ watchdog ('AGMAN MM ' , 'File do not exist in folder. %file ' , array ('%file ' => $ xml_item_pdf ), WATCHDOG_WARNING );
273273 return FALSE ;
274274}
275275
@@ -477,7 +477,7 @@ function _os2web_agman_esdh_mm_order_addenums($drush = FALSE) {
477477 }
478478 if (isset ($ meetings [$ meeting_id [0 ]['value ' ]][$ meeting_sub_id [0 ]['value ' ]])) {
479479 // Duplicate meeting detected.
480- watchdog ('SBsys MM ' , 'Duplicate import found for meeting %mid. Deleting nid=%nid. ' , array ('%mid ' => $ meeting_id ['value ' ], '%nid ' => $ node ->nid ), WATCHDOG_WARNING );
480+ watchdog ('AGMAN MM ' , 'Duplicate import found for meeting %mid. Deleting nid=%nid. ' , array ('%mid ' => $ meeting_id ['value ' ], '%nid ' => $ node ->nid ), WATCHDOG_WARNING );
481481 node_delete ($ node ->nid );
482482 }
483483 else {
0 commit comments