/** * Check if this object should be rendered. * * @param string $type Type: "file", ... * @param object $pObj Parent object. * @return boolean * @see SC_browse_links::main() */ function isValid($type, &$pObj) { $isValid = false; $pArr = explode('|', t3lib_div::_GP('bparams')); if ($type === 'rte' and $pObj->button == 'image') { $isValid = true; } else { $valid = parent::isValid($type, $pObj); } return $isValid; }