Zikula_System_Modules
[ class tree: Zikula_System_Modules ] [ index: Zikula_System_Modules ] [ all elements ]

Source for file pnaccountapi.php

Documentation is available at pnaccountapi.php

  1. <?php
  2. /**
  3.  * Zikula Application Framework
  4.  *
  5.  * @copyright (c) 2002, Zikula Development Team
  6.  * @link http://www.zikula.org
  7.  * @version $Id: pnaccountapi.php 22138 2007-06-01 10:19:14Z markwest $
  8.  * @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
  9.  * @package Zikula_System_Modules
  10.  * @subpackage Categories
  11.  * @author Mark West
  12.  */
  13.  
  14. /**
  15.  * Return an array of items to show in the your account panel
  16.  *
  17.  * @return   array   array of items, or false on failure
  18.  */
  19. {
  20.     // Create an array of links to return
  21.     if (SecurityUtil::checkPermission('Categories::''::'ACCESS_EDIT&& pnModGetVar('Categories''allowusercatedit')) {
  22.         $referer pnServerGetVar('HTTP_REFERER');
  23.         if (strpos($referer'module=Categories'=== false{
  24.             SessionUtil::setVar('categories_referer'$referer);
  25.         }
  26.         $items array(array('url'     => pnModURL('Categories''user''edituser'),
  27.                              'module'  => 'core',
  28.                              'set'     => 'icons/large',
  29.                              'title'   => _CATEGORIES_YOURCATEGORIES,
  30.                              'icon'    => 'mydocuments.gif'));
  31.     else {
  32.         $items null;
  33.     }
  34.  
  35.     // Return the items
  36.     return $items;
  37. }

Documentation generated on Fri, 18 Jul 2008 21:49:41 +0200 by phpDocumentor 1.4.1