Needs review
Project:
Omega Tools
Version:
7.x-3.0-rc3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
2 Nov 2011 at 06:07 UTC
Updated:
4 Jul 2012 at 04:39 UTC
Jump to comment: Most recent file
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
decipheredHere'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
decipheredOk, 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 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
decipheredProfiler 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
decipheredpreg_filter() is only available with PHP 5.3+, will need to be replaced with another approach.
Comment #6
decipheredUpdated patch:
- Added drupal_atler to allow other modules the ability to modify the available tokens
- Changed preg_filter to preg_replace