Differences between 7.x.2 and 7.x.3
Last updated on
30 April 2025
The Domain Access Module is available for Drupal 7 in two versions:
- Version 7.x.2 is stable and supported with bugfix only.
- Version 7.x.3 branch is now a stable release. All new features go into 7.x.3. Developers should work from the 7.x-3.x branch.
If upgrading, please read Upgrading to Domain Access 7.x.3.
Feature changes in 7.x.3
- Improved installation and uninstall process
- New default domain settings - any domain may be assigned as 'default'
- Adds drag-and-drop sorting of domains and allows weighting of domains for full control over sorting
- Moves menu sub-items to local tasks
- Domain ID 0 (zero) is deprecated
- Test coverage is included for major functionality
- Increased Drush support and documentation for Drush installation and Drush 4 and Drush 5 commands
- Adds setting to place Domain settings in a vertical tab
- Allows source domain to be inactive
- Allows handling of new menu settings for Domain Conf
- Removes node editing form settings
- Removes node settings tab
- Supports proper render arrays
- Allows domain source to be any if content sent to all affiliates
- Added a server info block
- Allows exporting domain settings to features
- Better handling of aliases for development sites
- Added filters for domain-specific functionality
- Create a custom css class per domain
- Adds per-content type edit and delete permissions
- Fixed an issue which caused command-line PHP scripts to fail
API & other changes in 7.x.3
- Supports use of module.domain.inc files
- Removes the old use of domain_conf.inc
- Refactors hook naming (to hook_domain_HOOK from hook_domainHOOK)
- Cleans up domain.api.php
- Code standards cleanup
- Adds domain_conf drush command file
- Adds domain_test.module for hook testing
- Adds domain_default_id() utility function for checking domain status
- Cleans up admin forms and actions
- Deprecates hook_domainview()
- Deprecates hook_domainlinks()
- Updates to new Token API and token documentation
- Cleans up various new forms, weights and Drush elements
- Uses MENU_VISIBLE_IN_BREADCRUMB where proper
- Provides additional domain tokens
- Makes domain_check_primary() optional on editing domains
- Allows modules to alter domain_batch implementations
Developers
If your module stores a domain_id field, you need to update all references to domain_id 0. The proper method is in hook_update_N after declaring a dependency on domain_update_7303.
/**
* Implements hook_dependencies().
*/
function domain_theme_update_dependencies() {
$dependencies['domain_theme'][7300] = array(
'domain' => 7303,
);
return $dependencies;
}
/**
* Remove references to row 0.
*/
function domain_theme_update_7300(&$sandbox) {
$default_id = db_query("SELECT domain_id FROM {domain} WHERE is_default = 1")->fetchField();
db_update('domain_theme')
->fields(array('domain_id' => $default_id))
->condition('domain_id', 0)
->execute();
return t('Domain Theme zero records removed.');
}
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion