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.

Files: 
CommentFileSizeAuthor
double-returns-user_edit.patch458 bytesanon
PASSED: [[SimpleTest]]: [MySQL] 67 pass(es).
[ View ]

Comments

Status:Needs review» Fixed

Committed and pushed.

Be aware that your commit (http://drupalcode.org/project/ctools.git/commit/12d6b1d) contained more than just the above patch.

Huh. The other commit is intended, at least, but I thought they were separate. I must've messed up a commit command.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Priority:Minor» Critical
Status:Closed (fixed)» Active

This 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

This changes was from #1775660: Move the code for adding/removing classes from Panels to CTools that does get no testing and no profiling

Priority:Critical» Minor
Status:Active» Closed (fixed)