I have zero experience with PHP. I am trying to extend developer portal by calling API which automatically approves App instead of putting it in Pending state when a developer changes the OAuth callback URL.
I am unable to invoke /var/www/html/profiles/apigee/modules/custom/devconnect/devconnect_developer_apps/devconnect_developer_apps.api.php - hook_devconnect_developer_app_presave(). I have added below code
I don’t see any messages written to admin/reports/dblog. Any idea why hook_devconnect_developer_app_presave() is not getting called when I edit my app from devportal user//apps//edit-app
HI @Vineet Bhatia You should be able to do it OOB without doing any custom coding. If you just edit the callback URL it should just edit the callback URL without changing the status of the app. I just tried it and it worked for me.
@sarthak For us whenever we change callback URL from DevPortal (logged in as Developer) the application goes into Pending status. We do want manual approval when developer signs up and creates a new application.
@sarthak You are correct. Today when I tried changing callback url the app does not go back to pending status. Very strange, earlier the app would go into pending status.