Building Drupal installation profiles

Comments

7 comments posted
Thanks for this. I think

Thanks for this. I think Angie's post is going to do a real dis-service to evolving install profiles. DB dumps are not sustainable. At that point, why not just install Backup & Migrate and make the dump available...

Re: "just using the built-in APIs, which defeats the purpose. Obviously it needs further work."

Please file an issue, because that shouldn't be the case. And, of course, a bunch of install_profile_api wrapper functions existed BEFORE the built in functions were there.

In some instances, there is a bunch of code needed to wrap db_query. I won't ever use a "bare" db_query in an install profile, because it we need to encapsulate that sort of stuff.

Also, install_profile_api is pretty much open for anyone that wants to become a contributor. Email me if you'd like to contribute.

Posted by Boris Mann (not verified) on Sun, 06/07/2009 - 12:50pm
Thanks for the feedback,

Thanks for the feedback, Boris. Yes, some of the install_profile_api functionality needs some cleaning up to keep current with the latest module development, I'm currently starting a bit of a large project so I'll see if I can come up with some more improvements.

Posted by Damien on Sun, 06/07/2009 - 6:53pm
Doesn't Drupal have a way of

Doesn't Drupal have a way of automatically capturing in code what happens after a button is clicked after the required options are set, ie having the equivalent of macro code generated like in Microsoft Excel or Word?

I thought it is the exposure of that kind of facility that drush commands use.

Posted by Frank Church (not verified) on Tue, 09/01/2009 - 8:34am
Thank you so much for taking

Thank you so much for taking the time to write this article. I am just getting into installation profiles and by looking through all the different threads and modules, I had become more confused on the best path forward. Especially with lots of news out there just now about some of those other modules that are becoming popular.

Your article gives enough information to help someone, like me, to at least get started in the right direction and to know it is the right direction (for now at least!).

I can see the advantages clearly and whilst it is quite an initial hurdle, it is going to be well worth tackling to make future deployments and upgrades a quicker and more reliable process. Right then, here goes...!

Posted by kjay (not verified) on Tue, 09/08/2009 - 5:33am
Thanks for the article. I am

Thanks for the article. I am having trouble enabling / installing non-core themes in my install profile.
I have tried a number of methods without any luck on either zen, zen_classic or ninesixty themes.

For example, when using install_profile_api to install_default_theme('zen'), there are errors referring to theme_key code in the system module and the theme appears to be set as default but not enabled. In any case the theme is broken (no logo, errors, etc.) UNTIL I visit the theme admin page and as soon as I arrive there the theme seems to load properly.

Any tips would be really helpful.

Posted by Boris Gordon (not verified) on Thu, 11/05/2009 - 8:07pm
Hello Boris, I find that I

Hello Boris,

I find that I need to clear cache after running the install to get the theme to show up properly.

Posted by Adrian Rollett (not verified) on Wed, 11/11/2009 - 5:30pm
Thank you so much! I am at a

Thank you so much!

I am at a point where I need to write an installation profile and this is the best article I have read. Again thank you!

Posted by Mike Usry (not verified) on Tue, 01/26/2010 - 5:44pm

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Spoilers can be placed between [spoiler][/spoiler] tags in order to be masked using CSS. Users will need to highlight the text to read content.

More information about formatting options