3 // -*- php -*- vim: ft=php
5 function cvsfilter_help($section) {
7 case 'admin/modules#description':
8 case 'admin/system/modules#description':
9 return t("Automatically points cvs: style URLs at the appropriate location.");
14 function cvsfilter_filter($op, $delta = 0, $format = -1, $text = "") {
17 return t("CVS Filter");
19 return array(0 => t("CVS Filter"));
21 return cvsfilter_help('admin/modules#description');
23 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."));
25 $text = preg_replace("/<a href=\"cvs:\/\/([^\"\/]*)\/?([^\"]*)\">/i", '<a href="http://www.sexygeek.us/cgi-bin/cvsweb/\2?cvsroot=\1">', $text);
26 $text = preg_replace("/<a href=\"cvs:([^\"]*)\">/i", '<a href="http://www.sexygeek.us/cgi-bin/cvsweb/\1?cvsroot=tpope">', $text);