code/libraries/joomlatools/component/koowa/template/filter/module.php
protected function _injectModule($name, $attributes = array(), $content = null)
    {
        //Create module object
        $module            = new stdClass();
        $module->content   = $content;
        $module->id        = uniqid();
        $module->position  = $attributes['position'];
        $module->params    = $attributes['params'];
        $module->showtitle = !empty($attributes['title']);
        $module->title     = $attributes['title'];
        $module->attribs   = $attributes;
        $module->user      = 0;
        $module->name      = $name;
        $module->module    = 'mod_'.$name;

        $modules = &ComKoowaModuleHelper::getModules(null);

        if($module->attribs['prepend']) {
            array_push($modules, $module);
        } else {
            array_unshift($modules, $module);
        }
    }
protected function _injectModule($name, $attributes = array(), $content = null)
    {
        //Create module object
        $module            = new stdClass();
        $module->content   = $content;
        $module->id        = uniqid();
        $module->position  = $attributes['position'];
        $module->params    = $attributes['params'];
        $module->showtitle = !empty($attributes['title']);
        $module->title     = $attributes['title'];
        $module->attribs   = $attributes;
        $module->user      = 0;
        $module->name      = $name;
        $module->module    = 'mod_'.$name;

        $modules = &ComKoowaModuleHelper::getModules(null);

        if($module->attribs['prepend']) {
            array_push($modules, $module);
        } else {
            array_unshift($modules, $module);
        }
    }
protected function _injectModule ( $ name , $ attributes = array ( ) , $ content = null ) { //Create module object $ module = new stdClass ( ) ; $ module -> content = $ content ; $ module -> id = uniqid ( ) ; $ module -> position = $ attributes [ 'position' ] ; $ module -> params = $ attributes [ 'params' ] ; $ module -> showtitle = ! empty ( $ attributes [ 'title' ] ) ; $ module -> title = $ attributes [ 'title' ] ; $ module -> attribs = $ attributes ; $ module -> user = 0 ; $ module -> name = $ name ; $ module -> module = 'mod_' . $ name ; $ modules = & ComKoowaModuleHelper :: getModules ( null ) ; if ( $ module -> attribs [ 'prepend' ] ) { array_push ( $ modules , $ module ) ; } else { array_unshift ( $ modules , $ module ) ; } }
Inject the module

@param  string $name
@param  array  $attributes
@param  string $content
Inject the module