Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
.Net VCL for Delphi 1.0.0.0
ASP. NET C# PDF Software 4.5
LinqConnect Professional 4.8
CAD VCL: 2D/3D CAD in Delphi/C++Builder 14
wolfSSL 3.15.7
CAD DLL 14
AnyStock Stock and Financial JS Charts 8.4.2
ODBC Driver for SQLite 2.4
dotConnect for SugarCRM 1.7
dbForge SQL Complete 5.9
dbForge Studio for MySQL 8.0
.Net Runtime Library for Delphi 6.0.4.0
Scimbo 1.64
AnyMap JS Maps 8.4.2
GetOrgChart 2.5.3
Top Code
Ticket Booking System 1.0
CPP-2-HTML CSS Source Code Tagger 1.02
GNU Common C 2.3.2
College Management System Script 1.0.4
Simple Hill-Climbing 1.0
.Net VCL for Delphi 1.0.0.0
MCU 8051 IDE 1.4.7
Java API for Java code generation 1.0
Network-Integrated Multimedia Middleware 2.2.0
Simple Webinterface Shopsystem for Shopping Carts 0.4
Online Food Ordeing System 1.0
Visual FoxPro Functions/Class Libary 100
BSW Ads Manager 1.0
Jigsaw Java Applet 1.0
Skincare Management System 1.4
Top Rated
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
PHP Digital Download Script 1.0.4
Custom destination 6.x-1.x-dev
File ID: 98138






Custom destination 6.x-1.x-dev
Download Custom destination 6.x-1.x-devhttp://drupal.org/Report Error Link
License: Freeware
File Size: 10.0 KB
Downloads: 2
Submit Rating:
Custom destination 6.x-1.x-dev Description
Description: Custom (Form) destination provides a way to define where a form should redirect the user upon submission.
When you submit a form, Drupal deals with your input (saving your node, sending an email, storing a setting, etc..) and then redirect you to a page. You usually are sent back to the page originating the request (for example when you enable a module) or to a different page (for example after you succesfully submit a new node, it will be displayed to you).
There may be some cases in which you want to override the default behaviour, that is you want to be redirected to a different page (see the Examples section below).
This is where Custom (Form) destination comes in handy, giving you the ability to define the page a form redirects to upon submission.
Ok. How do I use it?

To set a new destination page for a form you need 2 things (drumrolls): a destination page and a form.
A destination page is any valid Drupal path. Examples are "node/58", "mylandingpage", "admin/settings". Anything after ?q= or, if Clean URLs are enabled, anything after your Drupal root in the URL (e.g.: http://www.example.org/blog/2008/07 or, for sub-dir installations, http://www.example.org/sub/dir/drupal/blog/2008/07).

You will also need to identify the form finding out what we call a Form ID. It can be easily found by viewing the source of the page containing the form and navigating to find out the field with name "form_id". The value of the value= attribute of that field is the Form ID you are looking for.
If source code is not your thing you can install form inspect module, which will reveal the Form ID for you.

Once you have collected these two important info, you can navigate to Administer d-deDo Site configuration d-deDo Custom destination, click on the "Add custom destination" tab and input them in the corresponding field, hit the button and test that everything works!
Example

Core contact.module redirects to "node/". You can use Custom destination to override this behaviour: using its simple interface define a new destination (any valid Drupal path) for the "Form ID" 'contact_mail_page' and you are all set!
Future possible improvements (feedback is welcome)
User/Admin interface

* print a notice on forms affected by the module current module configuration
* integration with Token module

Developer (mostly notes to myself)

* add some AHAH juice
* include tests

Acknowledgements

Development of this module has been kindly sponsored by John_Kenney.
Thanks to dipen Dojo wiki article from which I borrowed help text about Form ID.
Thanks to the core Path module from which I took a "great bit" of inspiration and code.

License: Freeware

Related: destination, Module, drupal, Custom, Field, Define, override, behaviour, redirects, Interface, Configuration, Valid, Examples, Source, Redirect, Submit, Scripts, Dev, destination scripts, custom destination

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 2



More Similar Code

Custom (Form) destination provides a way to define where a form should redirect the user upon submission.
When you submit a form, Drupal deals with your input (saving your node, sending an email, storing a setting, etc..) and then redirect you to a page. You usually are sent back to the page originating the request (for example when you enable a module) or to a different page (for example after you succesfully submit a new node, it will...



The BrowserEmulator fopen functions is a class which offers you various features such as sending custom header lines, GET or POST requests, contains basic HTTP authentication and also the script is usable with all PHP file handling methods like...



The Custom Window Opener allows you to open new browser windows in the exact format you specify.

You can choose the width & position of the window, and also specify the windows location, menubar, resizable, scrollbars, status &...



This script is a custom scroll bar maker for both vertical or horizontal applications. The Scroll Bar may control a 'Scroll Element' content or return the slider position relative to its travel to a specified function.

Features:
-...



This project will create a custom App Wizard for creating MEX files in Visual Studio.Net. After installing, use the wizard to create a skeleton mex-file project, with the correct project settings. Simply fill in your function code and compile to...



This package contains no M-code - just a set of custom icons I created for a blog post on Doug's Pick of the Week using the submitted icon editor.



This project will create a custom App Wizard for creating MEX-files in Visual Studio.Net. After installing, use the wizard to create a skeleton MEX-file project, with the correct project settings. Simply fill in your function code and compile to...



Simple display of the latest updates to your custom post type.

Simplicity at its finest!

This simple plugin adds a widget that allows for the display of recent posts in any custom post type. It functions almost identically to...



Works with Custom Smilies 2.3!

I use Custom Smilies 2.3 plugin. However, I prefer the Yahoo! Messenger emoticons. So, I did some digging, found them all, then tweaked my plugin to use those emoticons. Yahoo! Emoticons for Custom Smilies...



Use widgets or template tags to easily retrieve and control the display of any custom field values/meta data for posts or pages.

The power of custom fields gives this plugin the potential to be dozens of plugins all rolled into one.

User Review for Custom destination
- required fields
     

Please enter text on the image