bo = new resources_bo(); $this->tmpl = new Etemplate(); // For index - override so "add" button opens correctly $this->tmpl->setElementAttribute("nm", "header_left", "resources.customfields.add"); $content_types = $this->bo->acl->get_cats(Acl::ADD); array_walk($content_types, function ($name, $id) { $this->content_types[$id] = array('name' => $name); }); Api\Translation::add_app('resources'); } public function edit($content = null) { // Turn private off $_GET['use_private'] = false; unset($content['use_private']); parent::edit($content); } }