PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Hooks/Filters API question - where do they go?

  1. utropicmedia
    Member

    I've found the documentation, but where should they go? A custom PHP file? How does that file get registered/included in the processing?!?

    Maybe I just missed it, but I haven't found this information anywhere.

    Posted 13 years ago on Saturday November 13, 2010 | Permalink
  2. They should go in your theme's function.php.

    Posted 13 years ago on Saturday November 13, 2010 | Permalink
  3. utropicmedia
    Member

    Thanks alex. We're writing a connector between gravity forms and vtiger crm.

    Posted 13 years ago on Saturday November 13, 2010 | Permalink
  4. utropicmedia
    Member

    alex, one more question. Where do we get the mapping of the field name in the form to the field name in the form_meta object?

    Posted 13 years ago on Saturday November 13, 2010 | Permalink
  5. The form_meta object has a"fields" array. Each item in the array is a "Field" object that has an ID. That ID can be found in the field's <input element. (i.e. name='input_10' -> field ID is 10).
    Looping through all fields and displaying their IDs

    foreach($form["fields"] as $field)
       echo $field["id"]

    I hope this helps...

    Posted 13 years ago on Sunday November 14, 2010 | Permalink
  6. utropicmedia
    Member

    got it, thanks. we're submitting new leads in vtiger now. you guys have a great product.

    Posted 13 years ago on Sunday November 14, 2010 | Permalink
  7. I would also really like vTiger integration, or simply an explanation of how this can be done. I am happy to pay someone to help me configure this.

    Posted 12 years ago on Tuesday June 7, 2011 | Permalink