2

We wanted to let a Drupal user 'create new group' in civicrm without needing to go in to CiviCRM itself.

Clues from here 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

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.