Source for file pninit.php
Documentation is available at pninit.php
* Zikula Application Framework
* @copyright (c) 2002, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: pninit.php 24342 2008-06-06 12:03:14Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @package Zikula_Value_Addons
* initialise the Banners module
* This function is only ever called once during the lifetime of a particular
* @todo identify suitable indexes
* @return bool true if successful, false otherwise
// create the three tables
$tables = array('banners', 'bannersclient', 'bannersfinish');
foreach ($tables as $table) {
// migrate the old config vars into module vars
// Initialisation successful
* upgrade the Banners module from an old version
* This function can be called multiple times
* @return bool true if successful, false otherwise
// create the three tables
$tables = array('banners', 'bannersclient', 'bannersfinish');
foreach ($tables as $table) {
// Upgrade dependent on old version number
// version 1.0 was shipped with PN .7x
// migrate the old config vars into module vars
* delete the Banners module
* This function is only ever called once during the lifetime of a particular
* @return bool true if successful, false otherwise
// drop the three tables for the module
$tables = array('banners', 'bannersclient', 'bannersfinish');
foreach ($tables as $table) {
// delete all module vars
|