3 // -*- php -*- vim: ft=php
5 function cvsfilter_help($section) {
7 case 'admin/system/modules#description':
8 return t("Automatically points cvs: style URLs at the appropriate location.");
12 function cvsfilter_filter($op, $text = "") {
15 return t("CVS Filter");
17 return form_group(t("URL Filter"), t("CVS Filter is enabled. This means that cvs: style URLs will automatically be pointed at the appropriate location."));
19 $text = preg_replace("/<a href=\"cvs:\/\/([^\"\/]*)\/?([^\"]*)\">/i", '<a href="http://sexygeek.us/cgi-bin/cvsweb/\2?cvsroot=\1">', $text);
20 $text = preg_replace("/<a href=\"cvs:([^\"]*)\">/i", '<a href="http://sexygeek.us/cgi-bin/cvsweb/\1?cvsroot=tpope">', $text);