Answers.Body: <p>"To implement a hook, add a function to the module's main .php file created earlier with civix generate:module" - the <a href="https://docs.civicrm.org/dev/en/master/extensions/civix/#add-a-hook-function" rel="nofollow noreferrer">developer guide</a>.</p>
  
  <p>However, if you've created your own page class, you may not need to use a hook at all, since you have complete control of the code.</p>
  
  <p>If I haven't answered your question, please update your question with a bit more detail about what you're trying to do.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-04T04:26:57.280Z
Answers.Text: Could you answer my new question related to this one https://civicrm.stackexchange.com/questions/19314/get-source-table-values-in-civicrm-triggerinfo
Answers.UserDisplayName: ManiMuthuPandi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-03T17:57:33.830Z
Answers.LastActivityDate: 2017-07-03T17:57:33.830Z
Answers.UserDisplayName: universalhandle
Body: <p>I am new to civicrm.</p>
  
  <p>I have created a module; say com.ex.myextention. and created a page its working fine. </p>
  
  <p>But in my module where I have to write a hook and how to ensure the defined hook is working.</p>
  
Tags: <webform-civicrm><hooks>
Title: Where I have to write my hook
ThreadText: # Where I have to write my hook
  
  (Asked by: username_0 on 2017-07-03)
  
  I am new to civicrm.
  
  I have created a module; say com.ex.myextention. and created a page its working fine.
  
  But in my module where I have to write a hook and how to ensure the defined hook is working.
  
  **Tags:** webform-civicrm, hooks
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-07-03. Score: 3 | Accepted answer
  
  "To implement a hook, add a function to the module's main .php file created earlier with civix generate:module" - the [developer guide](https://docs.civicrm.org/dev/en/master/extensions/civix/#add-a-hook-function).
  
  However, if you've created your own page class, you may not need to use a hook at all, since you have complete control of the code.
  
  If I haven't answered your question, please update your question with a bit more detail about what you're trying to do.
  
  > **Comments:**
  > **username_0**: Could you answer my new question related to this one https://civicrm.stackexchange.com/questions/19314/get-source-table-values-in-civicrm-triggerinfo  
  
  ---
  
  