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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Editing membership data.
Pages: [1]

Author Topic: Editing membership data.  (Read 419 times)

zskecskes

  • I’m new here
  • *
  • Posts: 1
  • Karma: -1
  • CiviCRM version: 4.3.5
  • CMS version: Drupal
  • MySQL version: 5.5.31
  • PHP version: 5.3.10
Editing membership data.
November 06, 2013, 12:03:08 am
Hi!

I'm new in CiviCRM and hooks.

I would like to edit the membership data on the membership tab, even if it has a membership_owner_id.

I think it is possible with the _civicrm_alterContent hook. I can change the "generated form elements", I can also change the "view" link to "update", but I'm afraid this is probably not the best way for this.

How can I add a plus edit link to the form, what hook do I have to use? Can you help me figure out How I can modify the links array in the \CRM\Member\Page\Tab.php with hooks?

Thank You

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Editing membership data.
November 06, 2013, 05:54:42 am
Quote
I think it is possible with the _civicrm_alterContent hook. I can change the "generated form elements", I can also change the "view" link to "update", but I'm afraid this is probably not the best way for this.

Yes you should be able to do this.

Quote
How can I add a plus edit link to the form, what hook do I have to use?

You can use same hook as above to add the another link.

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Editing membership data.

This forum was archived on 2017-11-26.