Drupal 7 - Add a cancel button on node forms (How to add a cancel button on node form?) September 10, 2014 The following code from the "example.module" will help you to add the cancel button to any node form. Share Get link Facebook X Pinterest Email Other Apps Share Get link Facebook X Pinterest Email Other Apps Comments hetal27 July 2016 at 03:08Really helpful. Thank you. I an getting Notice: Undefined index: destination in example_form_cancel().Do you know why??ReplyDeleteRepliesReplyDavid2 July 2018 at 12:59You can use isset() to avoid the notice, like this:$url = isset($_GET['destination']) ? $_GET['destination'] : 'choose/your/path';ReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
Really helpful. Thank you. I an getting
ReplyDeleteNotice: Undefined index: destination in example_form_cancel().
Do you know why??
You can use isset() to avoid the notice, like this:
ReplyDelete$url = isset($_GET['destination']) ? $_GET['destination'] : 'choose/your/path';