Index: openacs-4/packages/search/www/doc/guidelines.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/www/doc/guidelines.html,v diff -u -r1.2 -r1.2.28.1 --- openacs-4/packages/search/www/doc/guidelines.html 6 Oct 2001 12:09:40 -0000 1.2 +++ openacs-4/packages/search/www/doc/guidelines.html 5 Sep 2014 17:02:08 -0000 1.2.28.1 @@ -112,25 +112,28 @@
 create function notes__itrg ()
-returns opaque as '
+returns opaque as $$
 begin
-    perform search_observer__enqueue(new.note_id,''INSERT'');
+    perform search_observer__enqueue(new.note_id,'INSERT');
     return new;
-end;' language 'plpgsql';
+end;
+$$ language plpgsql;
 
 create function notes__dtrg ()
-returns opaque as '
+returns opaque as $$
 begin
-    perform search_observer__enqueue(old.note_id,''DELETE'');
+    perform search_observer__enqueue(old.note_id,'DELETE');
     return old;
-end;' language 'plpgsql';
+end;
+$$ language plpgsql;
 
 create function notes__utrg ()
-returns opaque as '
+returns opaque as $$
 begin
-    perform search_observer__enqueue(old.note_id,''UPDATE'');
+    perform search_observer__enqueue(old.note_id,'UPDATE');
     return old;
-end;' language 'plpgsql';
+end;
+$$ language plpgsql;
 
 
 create trigger notes__itrg after insert on notes