Without the Omega UI module, you will only be able to configure grid settings for your theme via the standard form.
The Omega UI module enables an advanced UI for configuring your Omega subtheme.
', 'warning');
}
// display information regarding the delta module, and how it interacts with an omega subtheme.
if (module_exists('delta') && arg(2) != 'delta') {
$form['delta_notice']['#markup'] = t('You have the Delta module installed, enabling advanced contextual theme settings. The settings provided on this page serve as the default theme settings when creating a new Delta theme settings template, yet can be overwritten by Delta based on the settings of your Delta templates and overrides.
');
$form['delta_notice']['#weight'] = -1000;
}
// include general theme functions required both in template.php AND theme-settings.php
require_once(drupal_get_path('theme', 'omega') . '/inc/theme-functions.inc');
// Add the form's custom CSS
drupal_add_css(drupal_get_path('theme', 'omega') . '/css/omega_theme_settings.css',
array(
'weight' => 1000,
)
);
// Add javascript to show/hide optional settings
drupal_add_js(drupal_get_path('theme', 'omega') . '/js/omega_admin.js',
array(
'weight' => 1000,
'type' => 'file',
'cache' => FALSE,
)
);
$form['omega_grid'] = array(
'#type' => 'vertical_tabs',
'#weight' => -10,
'#default_tab' => 'defaults',
'#prefix' => t('Omega Grid Settings
'),
);
$form['omega_general'] = array(
'#type' => 'vertical_tabs',
'#weight' => -9,
'#default_tab' => 'defaults',
'#prefix' => t('Omega General Settings
'),
);
// include Omega (grid) specific theme settings
require(drupal_get_path('theme', 'omega') . '/inc/grid-theme-settings.inc');
// include general theme settings
require(drupal_get_path('theme', 'omega') . '/inc/default-theme-settings.inc');
// include administrative functions for theme settings
require(drupal_get_path('theme', 'omega') . '/inc/admin-theme-settings.inc');
$form['theme_settings']['#collapsible'] = TRUE;
$form['theme_settings']['#collapsed'] = TRUE;
$form['logo']['#collapsible'] = TRUE;
$form['logo']['#collapsed'] = TRUE;
$form['favicon']['#collapsible'] = TRUE;
$form['favicon']['#collapsed'] = TRUE;
}