Message at the top of content on non-primary domains.
sn0rcha - June 8, 2009 - 10:16
| Project: | Domain Access |
| Version: | 6.x-2.0-rc7 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Hey guys,
Awesome work on this module, it's a cracker!!
I have it all setup and working correctly (I think), but whenever I view domains on sites other then my primary, I get this message before any content (only once).
"You are viewing . This form may need to be entered from "
Where is my domain and is the primary domain.
Any way of turning this message off? I searched through the issues but couldn't find a mention of it.
Thanks!

#1
Tags got ommited.. should read;
"You are viewing 'domain'. This form may need to be entered from 'primary domain'"
Where 'domain' is my domain and 'primary domain' is the primary domain.
#2
same problem, after update from RC6 to RC 7.
no config changes.
#3
This message should only be displayed on form pages -- it is implemented through hook_form_alter() -- and does not appear on default Drupal.
Are you using some module or custom code that causes a form to appear on these pages?
For debugging, watch the function
domain_warning_check().These are the forms on which this message should appear by default:
Array ([0] => system_admin_theme_settings
[1] => system_date_time_settings
[2] => system_site_information_settings
[3] => system_site_maintenance_settings
[4] => locale_languages_overview_form
[5] => menu_configure
[6] => system_themes_form
[7] => system_theme_settings )
#4
I think the reason for this message always showing up is that you are using the assignment operator instead of the comparison (==) in the if where you check for the form_id = 'domain_batch_form'. After changing it in domain_warning_check to "==" everything works fine.
#5
I hate typos. Dammit.
#6
After a day or two, I'll roll a new rc, or maybe a point release.
#7
Thanks for the responses guys, glad it wasn't just me!
Applied the patch, working a treat. Thanks again for such a wonderful module!
#8
Just another confirmation to let you guys know you where on the right track.
Had the same message. Applied the patch on RC7 today. Worked like a charm.
Tnx for all the fab. work agentrickard
You have a gem in your hands and making it into a jewel :-)
Best,
VinceW
-=[ Your Information Matters ]=-
#9
Are there instructions or a file name that needs to be changed? Looking to apply the fix to my sites as well, but am not sure which file needs to be updated. thanks
#10
@rornelas: http://drupal.org/patch/apply
#11
Automatically closed -- issue fixed for 2 weeks with no activity.