function __construct($action) { parent::__construct(); $explodedpath = explode('/', current_path()); $this->akteur_id = $this->clearContent($explodedpath[1]); if (!user_is_logged_in() || $action == 'update' && !$this->akteurExists($this->akteur_id)) { drupal_access_denied(); drupal_exit(); } // Sollen die Werte im Anschluss gespeichert oder geupdatet werden? if ($action == 'update') { $this->target = 'update'; } }
public function __construct() { parent::__construct(); $explodedpath = explode("/", current_path()); $this->akteur_id = $this->clearContent($explodedpath[1]); }