/** * Adds edit-icons to the input content. * tslib_cObj::editIcons used for rendering * * @param string HTML content to add icons to. The icons will be put right after the last content part in the string (that means before the ending series of HTML tags) * @param string The list of fields to edit when the icon is clicked. * @param string Title for the edit icon. * @param array Table record row * @param string Table name * @param array Conf array * @return string The processed content * @see tslib_cObj::editIcons() */ function pi_getEditIcon($content, $fields, $title = '', $row = '', $tablename = '', $oConf = array()) { if ($GLOBALS['TSFE']->beUserLogin) { if (!$row || !$tablename) { $row = $this->internal['currentRow']; $tablename = $this->internal['currentTable']; } $conf = array_merge(array('beforeLastTag' => 1, 'iconTitle' => $title), $oConf); $content = $this->cObj->editIcons($content, $tablename . ':' . $fields, $conf, $tablename . ':' . $row['uid'], $row, '&viewUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))); } return $content; }