Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Place the custom theme in: /sites/all/themes/custom/
Create the module install file, if it does not already exist. For example, in /sites/all/modules/custom/dfs_partner.install, we add the following to enable and set as default our theme partner_demo:
<?php
/**
* @file
* Installation routines for DFS_PARTNER feature.
*/
/**
* Implements hook_install().
*/
function dfs_partner_install() {
// Enable custom theme on install.
theme_enable(array('partner_demo'));
variable_set('theme_default', 'partner_demo');
}
Attachment | Size |
---|---|
theme dir.png | 29.17 KB |