filter

Intranet Link to Lotus Notes

03.02.2010
 von Pascal
 | 0 Kommentare

If you want to add a menu entry with a link to a lotus notes application then the error message "The path 'notes://path' is either invalid or you do not have access to it." will show up.

The problem is that Drupal does not allow the Protocol "notes" by default.

The filter module will check whether the protocol is allowed or not in the function filter_xss_bad_protocol.

<?php
variable_get
('filter_allowed_protocols', array('http''https''ftp''news''nntp''telnet'
'mailto''irc''ssh''sftp''webcal''rtsp')));
?>

Drupal Filter manuell ausführen

18.08.2008
 von Lukas Fischer
 | 0 Kommentare

Es gibt immer wieder Situationen bei denen man die Filter Optionen von Drupal manuell ausführen muss. Das ist ganz einfach. Die Magie liegt im File filter.module (http://api.drupal.org/api/file/modules/filter/filter.module/5).

Die wichtigsten Funktionen:

_filter_url($text, $format), macht aus möglichen URLs klickbare Links, $format ist das Input-Filter-Format das beim Textfeld ausgewählt wurde. (1 = Filtered HTML, 2 PHP code, 3 = Full HTML)
_filter_autop($text), macht aus Newlines
's bzw.

's

Beispiel:

Inhalt abgleichen