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) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Civicrmtheme module needs to be weighted heavier
Pages: [1]

Author Topic: Civicrmtheme module needs to be weighted heavier  (Read 1394 times)

torrance123

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 3
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0.91
  • PHP version: 5.3.3
Civicrmtheme module needs to be weighted heavier
August 22, 2011, 08:14:19 pm
We are running domain module with civicrm_theme. When accessing domains other than domain 0, domain's theme override kicks in and swaps out the theme. However, this runs after civicrmtheme (they run by alphabetical order) and therefore overrides civicrmtheme's more specific changes.

The solution to this is to run a db query during installation of civicrmtheme and modify its module wieight to 1.

Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: Civicrmtheme module needs to be weighted heavier
August 22, 2011, 09:54:51 pm
Not sure but I think it should replicate for Drupal6 (?) .
For drupal7, civicrmtheme module already using weight 11 ( in order to run after system setting form ).

Rajan

torrance123

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 3
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0.91
  • PHP version: 5.3.3
Re: Civicrmtheme module needs to be weighted heavier
August 23, 2011, 03:17:57 pm
Uh, my bad. We must have installed the civicrm 4 version sometime before that installation hook was added, as our civicrmtheme was weighted at 0. We encountered these problems with drupal 7, for the record.

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Civicrmtheme module needs to be weighted heavier
May 15, 2012, 01:28:10 pm
I will confirm this in a fresh installation of 4.12 and Drupal 7.14. I had to manually change the weight civicrmtheme in the Drupal system table from 0 to 11 to get the theme to kick in. (Thanks for the tip, torrance123!)

I'm also using Domain Access, so perhaps that has something to do with the
Code: [Select]
db_query("UPDATE {system} SET weight = 11 WHERE name = 'civicrm_theme'"); query in the civicrmtheme.install not properly executing.

In any event, there's still an issue here - hoping this post will help for others who may run into the same issue.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Civicrmtheme module needs to be weighted heavier

This forum was archived on 2017-11-26.