Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Nevertheless I tried looking for a more user friendly way to override these values, via Strongarm or some other alternative, but I couldn't find any.
I haven't tested OpenScholar's behavior after changing the variable values, so I can't really tell you what behavior to expect. Even so I hope it helps you solve your problem.
As of Beta10 there is a variable "openscholar_vsites_per_user" that controls how many sites a user can create for themselves (the default is still one).
This is not set in strongarm so you could override it however you like, unfortunately there is no admin form at the moment.
Also there are new permissions related to site creation:
"create own openscholar site" and
"create openscholar site on behalf of others"
I'm having trouble creating multiple sites, and I haven't been successful in implementing Rolando's or Richard's advice. I've found openscholar_vsites_per_user (which seems to be referenced only in sites/all/modules/openscholar_sitewide/scholarregister.pages.inc), but not scholar_create_multiple_sites (perhaps it was phased out with Beta 10).
Could anyone tell me where, exactly, I would set the openscholar_vsites_per_user variable? Do I have to edit scholarregister.pages.inc? If so, what's the correct syntax? Or does it need to be set in the database (and if so, which table/s and what values)?
Comments
Comment #1
rolando.isidoro commentedHi Rick,
for what I could tell, it's possible. Here are two variable definitions in the source code that seem to address your question:
Nevertheless I tried looking for a more user friendly way to override these values, via Strongarm or some other alternative, but I couldn't find any.
I haven't tested OpenScholar's behavior after changing the variable values, so I can't really tell you what behavior to expect. Even so I hope it helps you solve your problem.
Best regards,
Rolando
Comment #2
rbrandon commentedAs of Beta10 there is a variable "openscholar_vsites_per_user" that controls how many sites a user can create for themselves (the default is still one).
This is not set in strongarm so you could override it however you like, unfortunately there is no admin form at the moment.
Also there are new permissions related to site creation:
"create own openscholar site" and
"create openscholar site on behalf of others"
Hope that helps,
Ricahrd
Comment #3
rickward commentedThank you both for the additional information. The openscholar_vsites_per_user variable seems to be the magic incantation I was looking for.
Changing the value of this variable does effectively change the behavior of the scholarregister_signup_form.
Cheers!
Comment #4
craigj commentedI'm having trouble creating multiple sites, and I haven't been successful in implementing Rolando's or Richard's advice. I've found openscholar_vsites_per_user (which seems to be referenced only in sites/all/modules/openscholar_sitewide/scholarregister.pages.inc), but not scholar_create_multiple_sites (perhaps it was phased out with Beta 10).
Could anyone tell me where, exactly, I would set the openscholar_vsites_per_user variable? Do I have to edit scholarregister.pages.inc? If so, what's the correct syntax? Or does it need to be set in the database (and if so, which table/s and what values)?
Thanks in advance for any advice.