Skip to main content
sanzante's user avatar
sanzante's user avatar
sanzante's user avatar
sanzante
  • Member for 13 years, 3 months
  • Last seen this week
revised
drush cc all giving me an unlink error
added 124 characters in body
Loading…
awarded
revised
Loading…
awarded
revised
Loading…
answered
Loading…
awarded
comment
How to programmatically set a checkbox value of an user account which field is not in /people/accounts/fields
I don't understand the question. You just want to alter a form and set a checkbox? If yes, have you tried with altering the form? If yes, have you tried to hook in the form after DANSE has done its work? If your module hook implementation is called before DANSE you can use hook_module_implements_alter to force your module to be called after DANSE.
awarded
comment
revised
How exactly does drush determine PROJECTROOT and WEBROOT for a project?
Adding more information on answer that is key (the actual answer)
Loading…
revised
Loading…
comment
How exactly does drush determine PROJECTROOT and WEBROOT for a project?
Thanks! That's what I was looking for! I'm updating my question with my findings.
comment
How exactly does drush determine PROJECTROOT and WEBROOT for a project?
That's the standard definition of a web root and a project root. I already know that. What I am asking is how Drush determines the value of WEBROOT and PROJECTROOT, not the general definition of web and project root in the context of a web project.
revised
Loading…
comment
How exactly does drush determine PROJECTROOT and WEBROOT for a project?
Yes, that's true. But how Drush knows that? In the alias configuration you define the root path. That could be the webroot, but that's not true because you can point to the folder that contains the composer.json. I guess Drush is intelligent enough to check if the root configuration value is a drupal root (in that case WEBROOT and PROJECTROOT are that folder) or is boilerplate scheme like the one created by composer create-project, so the folder with composer.json is PROJECTROOT and the web folder is WEBROOT... but I would like a confirmation.
1
2 3 4 5
120