function language() { $html1 = getLanguageValue("install_lang_select") . "<br />"; $html2 = getLanguageSelect(); return array(true, contend_template(installHelp("install_lang_help"), "") . contend_template(array($html1, $html2), "")); }
function getInputFieldForType( $name, $type, $value ) { global $wgDefinedMeaning; switch( $type ) { case "language": return getLanguageSelect( $name ); case "spelling": return getTextBox( $name, $value ); case "boolean": return getCheckBox( $name, $value ); case "$wgDefinedMeaning": case "defining-expression": return getSuggest( $name, $wgDefinedMeaning ); case "relation-type": return getSuggest( $name, "relation-type" ); case "attribute": return getSuggest( $name, "attribute" ); case "collection": return getSuggest( $name, "collection" ); case "short-text": return getTextBox( $name, $value ); case "text": return getTextArea( $name, $value ); } }