Using Domain User Default with Domain Access 2.x version
nonsie - May 14, 2009 - 22:12
| Project: | Domain User Default |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
2.x version of DA now stores default domain in the database and is passed as 0 not -1. This requires executing the following update when upgrading from 1.x to 2.x:
function domain_user_default_update_6200() {
$ret = array();
$ret[] = update_sql("UPDATE {domain_user_default} SET domain_id = 0 WHERE domain_id = -1");
return $ret;
}