public function renderButton(&$node, $class=null)
{
// Get the button type.
$type = $node[0];
$button = $this->loadButtonType($type);
//if (method_exists($button,'setClass')) $button->setClass($class);
$button->setClass($class);
// Check for error.
if ($button === false) {
return JText::sprintf('JLIB_HTML_BUTTON_NOT_DEFINED', $type);
}
return $button->render($node);
}
Time to create page: 0.037 seconds