r51065 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51064‎ | r51065 | r51066 >
Date:14:28, 27 May 2009
Author:yaron
Status:deferred
Tags:
Comment:
Added 'category' and 'categories' inputs to lists of possible input types
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormField.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormField.inc
@@ -112,9 +112,9 @@
113113 $semantic_type == $url_type ||
114114 $semantic_type == $email_type) {
115115 if ($is_list) {
116 - return array('text', 'textarea');
 116+ return array('text', 'textarea', 'categories');
117117 } else {
118 - return array('text');
 118+ return array('text', 'category');
119119 }
120120 } elseif ($semantic_type == $text_type || $semantic_type == $code_type) {
121121 return array('textarea');
@@ -135,7 +135,7 @@
136136 return array('text');
137137 }
138138 } else { // blank or an unknown type
139 - return array('text', 'textarea', 'checkbox', 'date', 'datetime', 'datetime with timezone');
 139+ return array('text', 'textarea', 'checkbox', 'date', 'datetime', 'datetime with timezone', 'category', 'categories');
140140 }
141141 }
142142

Status & tagging log