It is a bad practice to delete content through a get request. Hence confirm_form() is a good candidate to offer the user a confirmation page and allow this action to be done only when the button is clicked (and not when the URL is opened).

Patch coming up in next comment.

Comments

juampynr’s picture

Status: Active » Needs review
StatusFileSize
new1.74 KB

Attached is a patch that substitutes admin/config/media/flickrapi/clear for a confirmation form.

Warning, this patch was built after creating the patch suggested at #1515450: Use of undefined constant OAUTH_COMMON_TOKEN_TYPE_REQUEST in cache.inc, so you will have to apply the latter before applying this one or it will fail to do so.

juampynr’s picture

Related documentation: http://drupal.org/node/470834

BarisW’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.