Source for file pntables.php
Documentation is available at pntables.php
* Zikula Application Framework
* @copyright (c) 2002, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: pntables.php 24342 2008-06-06 12:03:14Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @package Zikula_Value_Addons
* Populate pntables array for FAQ module
* This function is called internally by the core whenever the module is
* loaded. It delivers the table information to the core.
* It can be loaded explicitly using the pnModDBInfoLoad() API function.
* @return array The table information.
// Initialise table array
$pntable['faqanswer_column'] = array ('faqid' => 'pn_id',
'question' => 'pn_question',
'urltitle' => 'pn_urltitle',
'submittedbyid' => 'pn_submittedbyid',
'answeredbyid' => 'pn_answeredbyid');
$pntable['faqanswer_column_def'] = array('faqid' => 'I NOTNULL AUTO PRIMARY',
'question' => 'X DEFAULT NULL',
'urltitle' => "X NOTNULL DEFAULT ''",
'submittedbyid' => 'I NOTNULL',
'answeredbyid' => 'I NOTNULL');
// Enable categorization services
$pntable['faqanswer_db_extra_enable_categorization'] = pnModGetVar('FAQ', 'enablecategorization');
$pntable['faqanswer_primary_key_column'] = 'faqid';
// add standard data fields
// old tables for upgrade purposes
|