22 $sql =
"SHOW COLUMNS FROM " . $xoopsDB->prefix(
"xoopsnotifications");
25 $sql =
"SELECT * FROM " . $xoopsDB->prefix(
"xoopsnotifications");
27 while ($myrow = $xoopsDB->fetchArray(
$result)) {
28 $sql =
"INSERT INTO `" . $xoopsDB->prefix(
"notifications") .
"` (`id`, `modid`, `itemid`, `category`, `event`, `uid`, `mode`) VALUES (" . $myrow[
'not_id'] .
", " . $myrow[
'not_modid'] .
", " . $myrow[
'not_itemid'] .
", " . $myrow[
'not_category'] .
", " . $myrow[
'not_event'] .
", " . $myrow[
'not_uid'] .
", " . $myrow[
'not_mode'] .
")";
29 $xoopsDB->queryF(
$sql);
38 $plugins = \Xoops\Module\Plugin::getPlugins(
'notifications');
40 foreach (array_keys($plugins) as
$dirname) {
41 $helper->insertModuleRelations(
$xoops->getModuleByDirname($dirname));
52 $plugins = \Xoops\Module\Plugin::getPlugins(
'notifications');
53 foreach (array_keys($plugins) as
$dirname) {
54 $helper->deleteModuleRelations(
$xoops->getModuleByDirname($dirname));
xoops_module_install_notifications(&$module)
static loadFile($file, $once=true)
xoops_module_pre_uninstall_notifications(&$module)