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) »
  • form_alter to add Tags in edit mode to New Phone Call page???
Pages: [1]

Author Topic: form_alter to add Tags in edit mode to New Phone Call page???  (Read 1236 times)

kmitz

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 2
form_alter to add Tags in edit mode to New Phone Call page???
June 20, 2008, 06:25:13 pm
Hey,

I looked over the docs for "Customize Built-in and Profile Screens" and Chapter 7 generally.  Could someone point me to the docs re: altering a CiviCRM page (specifically, adding the Tags checkboxes in edit mode to the New Phone Call page) ???  Any related filenames would be appreciated.  The closest thing I could find was on Heydon's web site.  Am I getting close?

kmitz

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: form_alter to add Tags in edit mode to New Phone Call page???
June 21, 2008, 10:39:05 pm

1. civicrm does not use drupal's form api. so no equivalent of form_alter (in 2.0 and prior). there are new hooks in 2.1 which should allow u to add form elements into any form

2. you will need to hack the files directly in 2.0. Check http://civicrm.org/architecture/ to get a idea of how things are laid out (read the oldest articles first).

3. the new phone call page code is at: CRM/Activity/Form/Activity.php

I assume u mean the corresponding page for this url:

http://drupal.demo.civicrm.org/civicrm/contact/view/activity?atype=2&action=add&reset=1&cid=105

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) »
  • form_alter to add Tags in edit mode to New Phone Call page???

This forum was archived on 2017-11-26.