CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Question regarding redirect after "Edit" on CiviEvent Participant Record
Pages: [1]

Author Topic: Question regarding redirect after "Edit" on CiviEvent Participant Record  (Read 1027 times)

taiga

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Question regarding redirect after "Edit" on CiviEvent Participant Record
May 08, 2010, 08:53:53 pm
Hi there,

I've stumbled on a problem and I'm hoping someone here will be able to point me into the right direction.

In my project I'm implementing a very customized dashboard that runs entirely within Drupal enabling users to login and exposing a set of functions related to the CiviEvent module for only a particular type of event. One of the things users can do is modify a particular event by following a link on the dashboard (instead of searching for it within CiviCRM's admin interface):

/index.php?q=civicrm/contact/view/participant&reset=1&action=update&id=2&cid=4&context=search

Once they edit that participant record for this event by hitting "Save" the user is redirected to this page:

/index.php?q=civicrm/event/search&force=1

How would I change the redirect behavior after a "Save" action on a CiviCRM Participant Record screen?

Many thanks in advance,

Taiga


« Last Edit: May 08, 2010, 11:00:22 pm by taiga »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Question regarding redirect after "Edit" on CiviEvent Participant Record
May 09, 2010, 08:28:29 am

Implement civicrm_hook_postProcess

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmpostProcess

and redirect to your preferred location from the hook

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Question regarding redirect after "Edit" on CiviEvent Participant Record

This forum was archived on 2017-11-26.