Adamw has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/130653

Change subject: tweak to allow namespaced & static member getForm methods
......................................................................

tweak to allow namespaced & static member getForm methods

Change-Id: Ifd7b86c835ad6ebd7bcddda2080e3e5754a459aa
---
M includes/form.inc
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm/drupal 
refs/changes/53/130653/1

diff --git a/includes/form.inc b/includes/form.inc
index fd80e09..d464465 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -789,7 +789,7 @@
 
   // We first check to see if there's a function named after the $form_id.
   // If there is, we simply pass the arguments on to it to get the form.
-  if (!function_exists($form_id)) {
+  if (!is_callable($form_id)) {
     // In cases where many form_ids need to share a central constructor 
function,
     // such as the node editing form, modules can implement hook_forms(). It
     // maps one or more form_ids to the correct constructor functions.

-- 
To view, visit https://gerrit.wikimedia.org/r/130653
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifd7b86c835ad6ebd7bcddda2080e3e5754a459aa
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm/drupal
Gerrit-Branch: master
Gerrit-Owner: Adamw <awi...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to