Skip to content
Browse files

update for 7.x-2.x branch of omega and the drush script to create Ome…

…ga subthemes.
  • Loading branch information...
1 parent 1e1fa61 commit 3ab140c640202ad9645b69f19da6d1958421be4e @himerus committed
Showing with 3 additions and 3 deletions.
  1. +2 −2 omega_tools.drush.inc
  2. +1 −1 omega_tools.module
View
4 omega_tools.drush.inc
@@ -94,7 +94,7 @@ function drush_omega_tools_subtheme($name) {
$name = str_replace('__', '_', $name);
$name = trim($name, '_');
$drupal_root = drush_get_context('DRUSH_DRUPAL_ROOT') .'/';
- $omega_path = $drupal_root . drupal_get_path('theme', 'omega');
+ $omega_path = $drupal_root . drupal_get_path('theme', 'omega_starterkit');
if ($path = drush_get_option('destination')) {
$site_dir = $drupal_root .'sites/'. $path;
@@ -129,7 +129,7 @@ function drush_omega_tools_subtheme($name) {
}
// copy the starterkit directory to the new location
- $exec = 'cp -R '. $omega_path .'/starterkit '. $theme_dir .'/'. $name;
+ $exec = 'cp -R '. $omega_path .' '. $theme_dir .'/'. $name;
// replace instances of omega_starterkit in all php files
$exec .= '; sed -i.bak s/omega_starterkit/'. $name .'/ '. $theme_dir .'/'. $name .'/template.php';
$exec .= '; sed -i.bak s/omega_starterkit/'. $name .'/ '. $theme_dir .'/'. $name .'/theme-settings.php';
View
2 omega_tools.module
@@ -238,7 +238,7 @@ function omega_tools_block_view($delta = '') {
* Generate block content for the custom generated region placeholder blocks
*/
function _omega_tools_generate_block_content($rid){
- return '<div class="geshifilter"><code class="php">print render($'.$rid.');</code></div>';
+ return '<div class="geshifilter"><code class="php">render($'.$rid.');</code></div>';
}
/**

0 comments on commit 3ab140c

Please sign in to comment.
Something went wrong with that request. Please try again.