function _notify_mail_urls in Notify 5
Same name and namespace in other branches
- 5.2 notify.module \_notify_mail_urls()
1 call to _notify_mail_urls()
- _notify_content in ./
notify.module - Formatting of outgoing mail, taken from mail.inc, part of project.module
File
- ./
notify.module, line 528
Code
function _notify_mail_urls($url = 0) {
static $urls = array();
if ($url) {
if (strpos($url, '://')) {
$urls[] = $url;
}
elseif (strpos($url, '/') == 0) {
$urls[] = url(substr($url, 1), NULL, NULL, TRUE);
}
else {
$urls[] = url($url, NULL, NULL, TRUE);
}
return count($urls);
}
return $urls;
}