CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Feedback on CiviCRM Extension Enabler Drupal Module
Pages: [1]

Author Topic: Feedback on CiviCRM Extension Enabler Drupal Module  (Read 452 times)

kreynen

  • I post occasionally
  • **
  • Posts: 105
  • Karma: 8
Feedback on CiviCRM Extension Enabler Drupal Module
December 23, 2013, 09:53:47 am
I created https://drupal.org/project/civicrm_extension_enabler in response to a StackExchange question about enabling an extension included in a Drupal distribution.  While it's relatively easy to include the code of a CiviCRM extensions in a Drupal distribution's .make file, automatically enabling it is a bit more challenging because of the order of operations.  CiviCRM must be enabled before you can enable the extension.   

The only code in the initial version of the module is found in the module's .install and it only installs and enables the CiviVolunteer extensions.  While I could simply include that code in https://drupal.org/project/cm_starterkit_moderate, I'd like to develop a module anyone interested in maintaining a use case specific distribution can use by simply defining the extensions they wanted to include and this module. 

To make this as flexible as possible, the array of extensions that should be enabled needs to exist outside of the modules.  I'm leaning towards including it in the civicrm.settings.php.  The civicrm.settings.php file also seems like a logical place to configure this since that's a file that will likely be modified in a distribution.  That would work in the hosting environment we're deploying distributions in, but I wanted to see if anyone had any feedback on how this should work based on other workflows.




totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: Feedback on CiviCRM Extension Enabler Drupal Module
December 23, 2013, 12:56:48 pm
I'm cross-posting ( https://drupal.org/comment/8299483#comment-8299483 ), but if the list of dependencies is usually declared in the .info file, then why not put it in .info file for the install-profile or Drupal module?

https://gist.github.com/totten/54d42961903889869510

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Feedback on CiviCRM Extension Enabler Drupal Module

This forum was archived on 2017-11-26.