summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Green2007-07-09 11:48:02 (GMT)
committer Doug Green2007-07-09 11:48:02 (GMT)
commitea47f356c1a80198ce3834137e902df4313cbf34 (patch)
treebe2666fe8a41cd93e788c3e11bc3f0cf40dd5373
parent69b5f42c948bf0f7c5b269c17103c7d35d2f2d5c (diff)
add support for rules #link
-rw-r--r--coder.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/coder.module b/coder.module
index b716c44..49d488f 100644
--- a/coder.module
+++ b/coder.module
@@ -1228,7 +1228,11 @@ function theme_coder_warning($warning, $severity_name, $lineno = 0, $line = '')
// Extract description from warning
if (is_array($warning)) {
$description = $warning['#description'];
+ $link = $warning['#link'];
$warning = $warning['#warning'];
+ if (isset($link)) {
+ $warning .= ' ('. l('Drupal Docs', $link) .')';
+ }
}
if ($lineno) {
$warning = t('Line @number: !warning', array('@number' => $lineno, '!warning' => $warning));