All pastes #549044 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-07 23:36 UTC
rendered paste body

  function addToSpecialPages(&$list) {
    global $wgAllMessagesEn;
    
    foreach (StructuredInput::getInputList() as $val) {
      $key = str_replace (' ', '', strtolower($val));
      if (!array_key_exists($key, $wgAllMessagesEn)) {
        $wgAllMessagesEn[$key] = $val;
        
        $pageName = str_replace (' ', '', $val);
        
        $list[$pageName] = array('SpecialPage', $pageName);
      }
    }
    
    $wgAllMessagesEn['structuredinput'] = 'StructuredInput forms';
    
    $list['StructuredInput'] = array('SpecialPage', 'StructuredInput');
    
    return true;
  }