Source for file function.html_select_modulestylesheets.php
Documentation is available at function.html_select_modulestylesheets.php
* Zikula Application Framework
* @copyright (c) 2004, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: function.html_select_modulestylesheets.php 24342 2008-06-06 12:03:14Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @package Zikula_Template_Plugins
* Smarty function to display a drop down list of module stylesheets
* - modname The module name to show the styles for
* - assign: If set, the results are assigned to the corresponding variable instead of printed out
* - id: ID for the control
* - name: Name for the control
* - exclude Comma seperated list of files to exclude (optional)
* - selected: Selected value
* <!--[modstyleslist name=modulestylesheet selected=navtabs.css]-->
* @param array $params All attributes passed to this function from the template
* @param object &$smarty Reference to the Smarty object
* @return string the value of the last status message posted, or void if no status message exists
unset ($params['selected']);
unset ($params['modname']);
$smarty->trigger_error('html_select_modulestylesheets: parameter [modname] required');
$modstyleslist = pnModAPIFunc('Admin', 'admin', 'getmodstyles', array('modname' => $modname, 'exclude' => $exclude));
require_once $smarty->_get_plugin_filepath('function','html_options');
'output' => $modstyleslist,
'id' => isset ($id) ? $id : null),
$smarty->assign($assign, $output);
|