Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Code looks like
// This will perform a node_access check, so we don't have to.
return ctools_context_create('user_edit_form', $account);
return NULL;
And the last return is unnecessary.
Comment | File | Size | Author |
---|---|---|---|
double-returns-user_edit.patch | 458 bytes | anon |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted and pushed.
Comment #2
Jorrit CreditAttribution: Jorrit commentedBe aware that your commit (http://drupalcode.org/project/ctools.git/commit/12d6b1d) contained more than just the above patch.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedHuh. The other commit is intended, at least, but I thought they were separate. I must've messed up a commit command.
Comment #5
andypostThis commit introduces a huge performance regression with hook_process() fired for most of renderables. So better to revert it and split the hook into limited set of elements that allowed to accept class injections
Comment #6
andypostThis changes was from #1775660: Move the code for adding/removing classes from Panels to CTools that does get no testing and no profiling
Comment #7
andypostShout be fixed in #1775660: Move the code for adding/removing classes from Panels to CTools