Skip to main content
mpdonadio's user avatar
mpdonadio's user avatar
mpdonadio's user avatar
mpdonadio
Moderator
  • Member for 13 years, 8 months
  • Last seen this week
  • Philadelphia, PA
awarded
awarded
awarded
comment
Can the Mailchimp module email node content?
Do you have full control over your hosting environment (eg, VPN w/ root access) ?
awarded
awarded
 7
awarded
awarded
awarded
comment
Fire custom submit handler in form embedded in node edit form
Flag to reopen if you think this isn't a duplicate question.
awarded
comment
How do I run PHPUnit tests?
@apaderno What I described is essentially what I use for core development. I haven't found an advantage for Docker/Vagrant or full DrupalCI locally. I have a bunch of shell scripts for running tests, and if need all that DrupalCI does it is because I need a full testbot run and don't want to do that locally (though I have been toying with setting up a Pi4 Branble to do it).
answered
Loading…
awarded
awarded
comment
How to enable a field programmatically
Another hint for things like this is to look at the core kernel and functional tests. You can learn a lot from the setUp() methods.
awarded
comment
Find if $view object is a block or page
For clarity, that is for the active display, not in the generic sense for all displays attached to a $view. The active display isn't available in some of the early hooks (and I totally forget which ones).
comment
What is the mechanism behind class comments?
Don't agree with the close vote on this.
comment
hook_update_n($sandbox) batch getting executed only once
The declaration should be function mymodule_update_8001(&$sandbox), as arrays have weird pass by value/reference rules in PHP. So, I highly suspect in the UpdateManager(?), this isn't actually being called as a batch.