Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function remove_formatting( $string ) {
- $find = array();
- $find[] = '/width="\d+(px|%)?"\s*\|/';
- return preg_replace($find, "", $string);
- }
- function add_multiple_view( $box ){
- global $wgUser,$wgServer,$wgScriptPath;
- if (!$box || !is_object($box)) trigger_error("An error has occured.\n", E_USER_ERROR);
- $string = "<h4>Instructions</h4>
- Enter data in the Text area. Each row should be an a new line and fields should
- be delimited by \"||\" (double pipes) or tabs.";
- $sample_line = "";
- if (trim($box->headings) != "" ) {
- $sample_line = str_replace("\n", '||', $box->headings);
- $string .= "For example, a sample line of input looks like:<br />
- <pre>$sample_line</pre><br />";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement