Answers.Body: <p>You'd do it from another plugin, just as if you were latching onto any of Craft's native hooks.</p>
  
  <p><a href="https://craftcms.com/docs/plugins/hooks-and-events" rel="nofollow noreferrer">https://craftcms.com/docs/plugins/hooks-and-events</a></p>
  
  <p>You can use the <code>businessLogic</code> plugin as a starting point or use <a href="https://pluginfactory.io" rel="nofollow noreferrer">https://pluginfactory.io</a> to generate boilerplate plugin code.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-06T16:31:15.693Z
Answers.LastActivityDate: 2017-10-06T16:31:15.693Z
Answers.UserDisplayName: Brad Bell
Body: <p>I'm using this Import plugin <a href="https://github.com/boboldehampsink/import" rel="nofollow noreferrer">https://github.com/boboldehampsink/import</a>.
   It has a hook called <code>modifyImportRow</code>, which would let me process single .csv rows with my custom logic.</p>
  
  <p>In this case I have to process a Matrix field.</p>
  
  <p>I'm not sure where and how to call hooks in general. In the plugin? In another plugin like <code>businessLogic</code>? Is there a specific file?</p>
  
Tags: <hook><plugin-import>
Title: Where to call hook modifyImportRow?
ThreadText: # Where to call hook modifyImportRow?
  
  (Asked by: username_0 on 2017-10-06)
  
  I'm using this Import plugin <https://github.com/boboldehampsink/import>.
  It has a hook called `modifyImportRow`, which would let me process single .csv rows with my custom logic.
  
  In this case I have to process a Matrix field.
  
  I'm not sure where and how to call hooks in general. In the plugin? In another plugin like `businessLogic`? Is there a specific file?
  
  **Tags:** hook, plugin-import
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-10-06. Score: 2 | Accepted answer
  
  You'd do it from another plugin, just as if you were latching onto any of Craft's native hooks.
  
  <https://craftcms.com/docs/plugins/hooks-and-events>
  
  You can use the `businessLogic` plugin as a starting point or use <https://pluginfactory.io> to generate boilerplate plugin code.
  
  
  ---
  
  