/** Add buttons that create items in the folder. * @param FOLDER &$folder * @access private */ function _add_creators(&$folder) { parent::_add_creators($folder); $cmd = $this->make_command(); $cmd->id = 'new_recipe'; $cmd->title = 'New recipe'; $cmd->link = "create_recipe.php?id={$folder->id}"; $cmd->icon = '{app_icons}buttons/new_recipe'; $cmd->executable = $this->login->is_allowed(Privilege_set_entry, Privilege_create, $folder); $cmd->importance = Command_importance_high; $this->append($cmd); }