Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi,
I'm in the process of building a base distribution that presets certain functionality, etc, for a base to build new sites from, and I was building the ability to have the omega-html5 starterkit copied into the new 'sites/*/themes' directory when I stumbled onto Omega Tools.
While the Drush and Wizard functionality is cool, it would be nice if there was either some direct integration in the Profile module or a simple enough command to run in a profiles hook_install()
to do the same thing.
Comment | File | Size | Author |
---|---|---|---|
#6 | profiler_integration-1328986-6.patch | 1.51 KB | Deciphered |
#6 | interdiff.txt | 799 bytes | Deciphered |
#4 | profiler_integration-1328986-4.patch | 1.41 KB | Deciphered |
Comments
Comment #1
Deciphered CreditAttribution: Deciphered commentedHere's a snippet I've put together so far, not perfect yet but it's a start. Goes in
hook_install()
in your profile.Comment #2
Deciphered CreditAttribution: Deciphered commentedOk, think I've got it figured out now:
Note: Fill in any necessary value, mine is just using placeholders.
Obviously something like the following built into profile would be easier:
Comment #3
himerus CreditAttribution: himerus commentedI like it... I've been considering recently (based on a few projects I'm involved with) the ability to select and/or generate a new subtheme on the fly at install profile completion...
I'll play with this a bit and see where I get.
Comment #4
Deciphered CreditAttribution: Deciphered commentedProfiler support in attached patch, syntax as following:
omega-tools[{machine_name}][new] = 1
omega-tools[{machine_name}][name] = [conf_path:dir:prefix] theme
omega-tools[{machine_name}][machine_name] = [conf_path:dir:prefix]_theme
omega-tools[{machine_name}][base] = omega
omega-tools[{machine_name}][path] = [conf_path]/themes/[conf_path:dir:prefix]_theme
omega-tools[{machine_name}][default] = 1
omega-tools[{machine_name}][status] = 1
Three psuedo tokens are supplied:
[conf_path] - returns value of conf_path() (ie, sites/abc.com)
[conf_path:dir] - returns directory from conf_path() (ie, abc.com)
[conf_path:dir:prefix] - return prefix of directory from conf_path() (ie, abc)
Comment #5
Deciphered CreditAttribution: Deciphered commentedpreg_filter() is only available with PHP 5.3+, will need to be replaced with another approach.
Comment #6
Deciphered CreditAttribution: Deciphered commentedUpdated patch:
- Added drupal_atler to allow other modules the ability to modify the available tokens
- Changed preg_filter to preg_replace