API16

API16:JToolBar/renderButton

From Joomla! Documentation

Description

Render a parameter type.



Syntax

renderButton(&$node)
Parameter Name Default Value Description
&$node A param tag node.

Returns

array Any array of the label, the form element and the tooltip.

Defined in

libraries/joomla/html/toolbar.php

Importing

jimport( 'joomla.html.toolbar' );

Source Body

public function renderButton(&$node)
{
        // Get the button type.
        $type = $node[0];

        $button = &$this->loadButtonType($type);

        // Check for error.
        if ($button === false) {
                return JText::_('Button not defined for type').' = '.$type;
        }
        return $button->render($node);
}



Examples

Code Examples