function execute() { $context = $this->getContext(); $controller = $context->getController(); $request = $context->getRequest(); $user = $context->getUser(); // 対象となるユーザコミュニティIDを取得 $user_community_id = $request->ACSgetParameter('id'); // 対象となるマイフレンズグループコミュニティIDを取得 $friends_group_community_id = $request->ACSgetParameter('community_id'); // 更新 ACSUser::delete_friends_group($friends_group_community_id); $friends_group_list_top_page_url = $this->getControllerPath('User', 'FriendsGroupList') . '&id=' . $user_community_id; header("Location: {$friends_group_list_top_page_url}"); }