Answers.Body: <p>See the documentation for <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu/" rel="nofollow noreferrer">hook_civicrm_navigationMenu</a> including the civix helper functions.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-23T10:01:43.407Z
Answers.Text: I saw that but didn't understand.
Answers.UserDisplayName: Dipak Giri
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-23T10:31:42.017Z
Answers.Text: If you have a sample code then please share on dipakgiree@gmail.com
Answers.UserDisplayName: Dipak Giri
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-23T09:53:00.663Z
Answers.LastActivityDate: 2018-10-23T09:53:00.663Z
Answers.UserDisplayName: Aidan
Answers.Body: <p>Here is an example of an existing navigationMenu hook:</p>
  
  <pre><code>/**
   * Implements hook_civicrm_navigationMenu().
   *
   * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu/
   */
  function dmciviapi_civicrm_navigationMenu(&amp;$menu) {
  
    _dmciviapi_civix_insert_navigation_menu($menu, 'Administer', array(
      'label' =&gt; E::ts('Domus Medica API Volledige Rechten'),
      'name' =&gt; 'dmciviapi_dmapisettings',
      'url' =&gt; 'civicrm/dmciviapi/form/dmapisettings',
      'permission' =&gt; 'administer CiviCRM',
      'attributes' =&gt; [],
      'operator' =&gt; 'OR',
      'separator' =&gt; 0,
    ));
    _dmciviapi_civix_navigationMenu($menu);
  }
  </code></pre>
  
  <p>In this example the url contains the URL of a form I created with <code>civix generate:form</code></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-23T12:13:21.900Z
Answers.LastActivityDate: 2018-10-23T12:13:21.900Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>I create a simple extension but I want to put it on navigation bar.A simple menu inside a events menu. How can I do that?</p>
  
Tags: <api>
Title: How to add a custom extension on navigation?
ThreadText: # How to add a custom extension on navigation?
  
  (Asked by: username_0 on 2018-10-23)
  
  I create a simple extension but I want to put it on navigation bar.A simple menu inside a events menu. How can I do that?
  
  **Tags:** api
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-10-23. Score: 3
  
  See the documentation for [hook\_civicrm\_navigationMenu](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu/) including the civix helper functions.
  
  > **Comments:**
  > **username_0**: I saw that but didn't understand.  
  > **username_0**: If you have a sample code then please share on dipakgiree@gmail.com  
  
  ---
  
  ### Answer by username_2 on 2018-10-23. Score: 1
  
  Here is an example of an existing navigationMenu hook:
  
  ```
  /**
   * Implements hook_civicrm_navigationMenu().
   *
   * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu/
   */
  function dmciviapi_civicrm_navigationMenu(&$menu) {
  
    _dmciviapi_civix_insert_navigation_menu($menu, 'Administer', array(
      'label' => E::ts('Domus Medica API Volledige Rechten'),
      'name' => 'dmciviapi_dmapisettings',
      'url' => 'civicrm/dmciviapi/form/dmapisettings',
      'permission' => 'administer CiviCRM',
      'attributes' => [],
      'operator' => 'OR',
      'separator' => 0,
    ));
    _dmciviapi_civix_navigationMenu($menu);
  }
  
  ```
  
  In this example the url contains the URL of a form I created with `civix generate:form`
  
  
  ---
  
  