r51072 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51071‎ | r51072 | r51073 >
Date:15:59, 27 May 2009
Author:yaron
Status:deferred
Tags:
Comment:
Added utility function for 'RunQuery' page
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormUtils.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.inc
@@ -651,6 +651,28 @@
652652 }
653653 }
654654
 655+ /**
 656+ * Used by 'RunQuery' page
 657+ */
 658+ static function queryFormBottom() {
 659+ global $sfgTabIndex;
 660+
 661+ $sfgTabIndex++;
 662+ $disabled_text = ($is_disabled) ? "disabled" : "";
 663+ $label = wfMsg('sf_runquery');
 664+ $temp = array(
 665+ 'id' => 'wpRunQuery',
 666+ 'name' => 'wpRunQuery',
 667+ 'type' => 'submit',
 668+ 'tabindex' => $sfgTabIndex,
 669+ 'value' => $label,
 670+ 'title' => $label,
 671+ $disabled_text => '',
 672+ );
 673+ $text = " " . wfElement('input', $temp, '') . "\n";
 674+ return $text;
 675+ }
 676+
655677 static function getMonthNames() {
656678 return array(
657679 wfMsgForContent('january'),

Status & tagging log