Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_official / html / modules / blocks [ view in CVS ]
| Date | Directory [filter] | File(s) [view] | Author [filter] |
| 09 Aug 2002 03:09:54 | postnuke_official/html/modules/blocks | pnadminapi.php,1.19,1.20 | Paul Rosania |
| added option to specify block instance content at creation time | |||
Update of /home/cvsroot/postnuke_official/html/modules/blocks
In directory ns7.hostnuke.net:/tmp/cvs-serv17103
Modified Files:
pnadminapi.php
Log Message:
added option to specify block instance content at creation time
Index: pnadminapi.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/blocks/pnadminapi.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** pnadminapi.php 8 Aug 2002 19:31:20 -0000 1.19
--- pnadminapi.php 9 Aug 2002 03:09:51 -0000 1.20
***************
*** 55,58 ****
--- 55,62 ----
return false;
}
+
+ if (!isset($content)) {
+ $content = '';
+ }
// Load up database
***************
*** 62,66 ****
$block_group_instances_table = $pntable['block_group_instances'];
$block_groups_table = $pntable['block_groups'];
! $block_types_table = $pntable['block_types'];
// TODO: make sure group, type exist
--- 66,70 ----
$block_group_instances_table = $pntable['block_group_instances'];
$block_groups_table = $pntable['block_groups'];
! $block_types_table = $pntable['block_types'];
// TODO: make sure group, type exist
***************
*** 72,75 ****
--- 76,80 ----
pn_type_id,
pn_title,
+ pn_content,
pn_template,
pn_state)
***************
*** 78,81 ****
--- 83,87 ----
'" . pnVarPrepForStore($type) . "',
'" . pnVarPrepForStore($title) . "',
+ '" . pnVarPrepForStore($content) . "',
'" . pnVarPrepForStore($template) . "',
'" . pnVarPrepForStore($state) . "');";
View Statistics - Next Notice - Previous Notice
| Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |