Answers.Body: <p>At this point it looks as if putting</p>
  
  <pre><code>civicrm_initialize(); 
  $manager = CRM_Core_Resources::singleton();
  $manager-&gt;addCoreResources();
  </code></pre>
  
  <p>in to a module in hook_init() does the job.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-04T04:44:55.133Z
Answers.LastActivityDate: 2016-07-04T04:44:55.133Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>We wanted to let a Drupal user 'create new group' in civicrm without needing to go in to CiviCRM itself.</p>
  
  <p>Clues from <a href="https://civicrm.stackexchange.com/questions/9698/refresh-page-after-closing-modal-opened-by-crm-popup-outside-of-civicrm">here</a> suggested we might be able to do it without using API etc. The suggestion was that </p>
  
  <pre><code> putting &lt;a class="crm-popup" href="/civicrm/group/add?reset=1"&gt; Create a New Group &lt;/a&gt; into block body (Full HTML input format)
  </code></pre>
  
  <p>may suffice. It didn't as it seems to require 'something' to initialise civicrm</p>
  
Tags: <drupal><contacts><groups><tags>
Title: How to get a CiviCRM popup form (eg create new Group / Tag etc) working via a Drupal link
ThreadText: # How to get a CiviCRM popup form (eg create new Group / Tag etc) working via a Drupal link
  
  (Asked by: username_0 on 2016-07-04)
  
  We wanted to let a Drupal user 'create new group' in civicrm without needing to go in to CiviCRM itself.
  
  Clues from [here](https://civicrm.stackexchange.com/questions/9698/refresh-page-after-closing-modal-opened-by-crm-popup-outside-of-civicrm) suggested we might be able to do it without using API etc. The suggestion was that
  
  ```
   putting <a class="crm-popup" href="/civicrm/group/add?reset=1"> Create a New Group </a> into block body (Full HTML input format)
  
  ```
  
  may suffice. It didn't as it seems to require 'something' to initialise civicrm
  
  **Tags:** drupal, contacts, groups, tags
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-07-04. Score: 4
  
  At this point it looks as if putting
  
  ```
  civicrm_initialize(); 
  $manager = CRM_Core_Resources::singleton();
  $manager->addCoreResources();
  
  ```
  
  in to a module in hook\_init() does the job.
  
  
  ---
  
  