--- civicrm_theme.module Thu Mar 01 08:14:21 2007 +++ civicrm_theme_events.module Wed Apr 23 11:59:48 2008 @@ -4,6 +4,13 @@ function civicrm_theme_menu($may_cache) { if ($may_cache) { } + elseif (arg(0)=='civicrm' && arg(1)=='event' && arg(2)=='info') { + global $custom_theme; + if (($custom_theme = variable_get('civicrm_eventinfo_theme', '0')) != '0') { + $path = drupal_get_path('module', 'system'); + drupal_add_css($path .'/admin.css', 'module'); + } + } elseif (arg(0) == 'civicrm') { global $custom_theme; $theme_var = arg(1) == 'admin' ? 'civicrm_admin_theme' : 'civicrm_theme'; @@ -30,6 +37,13 @@ function civicrm_form_alter($form_id, &$ '#title' => t('CiviCRM User theme'), '#description' => t('Choose which theme the CiviCRM user pages should display in.'), '#default_value' => variable_get('civicrm_theme', ''), + ); + $newform['civicrm_eventinfo_theme'] = array( + '#type' => 'select', + '#options' => $form['admin_theme']['#options'], + '#title' => t('CiviCRM Event Information theme'), + '#description' => t('Choose which theme the CiviCRM event information pages should display in.'), + '#default_value' => variable_get('civicrm_eventinfo_theme', ''), ); $form = array_merge(array_slice($form, 0, 1), $newform, array_slice($form, 1)); }