The following code from the "example.module" will help you to add the cancel button to any node form.
This is step by step procedure for, how to configure the authcache, varnih and ESI for the drupal7 project in NGINX erver. To configuring the Nginx Server use the procedure from document " http://www.geoffstratton.com/2014/03/nginx-php-fpm-apc-ssl-drupal/ " Well, make sure your nginx server is up and running. 1.Configuring the Authcache module. Download the module from https://www.drupal.org/project/authcache Enable only the authcache module Go to admin/reports/status , then you can see the Authcache area is red and saying that there is no back end has been configured. 2.Configure Varnish on the back-end[nginx server]. Using the Following commands, $ curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add - $ echo "deb http://repo.varnish-cache.org/ubuntu/ precise varnish-3.0" | sudo tee -a /etc/apt/sources.list $ sudo apt-get update ...
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';