Ejemplo n.º 1
0
 /**
  * Show header of the parent table and list all records of the current table
  * @return string
  */
 protected function parentView()
 {
     $strParentView = parent::parentView();
     $arrButtons = array();
     // Added by Patrick Kahl
     // HOOK: call the hooks for clipboardActSelectButtons
     if (isset($GLOBALS['TL_HOOKS']['clipboardActSelectButtonsParentView']) && is_array($GLOBALS['TL_HOOKS']['clipboardActSelectButtonsParentView'])) {
         foreach ($GLOBALS['TL_HOOKS']['clipboardActSelectButtonsParentView'] as $callback) {
             $this->import($callback[0]);
             $arrButtons[] = $this->{$callback}[0]->{$callback}[1]($this);
         }
     }
     return preg_replace('/<div.*class="tl_submit_container".*>/', "\$0" . implode('', $arrButtons), $strParentView, 1);
 }