Zikula: A Flexible Open Source Content Management System
home | forum | international support | contact us

Docs for page pninit.php

Procedural File: pninit.php

Source Location: /Blocks/pninit.php

Classes:



Page Details:

Zikula Application Framework



Tags:

version:  $Id: pninit.php 24383 2008-06-12 14:15:02Z markwest $
copyright:  (c) 2001, Zikula Development Team
link:  http://www.zikula.org
license:  GNU/GPL








blocks_defaultdata [line 129]

void blocks_defaultdata( )

Add default block data for new installs

This is called after a complete pn installation since the blocks need to be populated with module id's which are only available once the install has been completed






[ Top ]



blocks_delete [line 115]

bool blocks_delete( )

delete the blocks module

This function is only ever called once during the lifetime of a particular module instance This function MUST exist in the pninit file for a module

Since the blocks module should never be deleted we'all always return false here




Tags:

return:  false
author:  Mark West


[ Top ]



blocks_init [line 22]

bool blocks_init( )

initialise the blocks module

This function is only ever called once during the lifetime of a particular module instance. This function MUST exist in the pninit file for a module




Tags:

return:  true on success, false otherwise
author:  Mark West


[ Top ]



blocks_upgrade [line 61]

bool blocks_upgrade( $oldversion)

upgrade the blocks module from an old version

This function can be called multiple times This function MUST exist in the pninit file for a module




Tags:

return:  true on success, false otherwise
author:  Mark West


Parameters

   $oldversion  
[ Top ]



blocks_upgradefrom76_post [line 248]

void blocks_upgradefrom76_post( )

Upgrade for blocks tables data from 0.76x to 0.8+

This function is called after the system upgrade is complete






[ Top ]



blocks_upgradefrom76_pre [line 211]

void blocks_upgradefrom76_pre( )

Upgrade for blocks tables data from 0.76x to 0.8+

This function is called prior to the system upgrade






[ Top ]


Packages:

Files:

Classes: