public function toggleIcons($arrRow, $href, $label, $title, $icon, $attributes, $strTable, $arrRootIds, $arrChildRecordIds, $blnCircularReference, $strPrevious, $strNext) { if ($arrRow['type'] != 'colsetPart' && $arrRow['type'] != 'colsetEnd') { return parent::toggleIcon($arrRow, $href, $label, $title, $icon, $attributes); } }
public function toggleButton($row, $href, $label, $title, $icon, $attributes) { $this->Import('BackendUser', 'User'); if ($this->User->isAdmin || !in_array($row['type'], $this->User->contentelements)) { $objCallback = new tl_content(); return $objCallback->toggleIcon($row, $href, $label, $title, $icon, $attributes); } return ''; }
/** * Hide toggle button for disabled content elements */ public function toggleButton($row, $href, $label, $title, $icon, $attributes) { if ($this->User->isAdmin || in_array($row['type'], (array) $this->User->elements)) { $objCallback = new tl_content(); return $objCallback->toggleIcon($row, $href, $label, $title, $icon, $attributes); } return ''; }