diff options
Diffstat (limited to 'manage_proposal.inc')
-rwxr-xr-x | manage_proposal.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/manage_proposal.inc b/manage_proposal.inc index 648faac..0cd070d 100755 --- a/manage_proposal.inc +++ b/manage_proposal.inc @@ -270,9 +270,13 @@ function proposal_approval_form($form,&$form_state) '#markup' => $row->scilab_version, '#title' => t('Scilab Version'), ); + /************************** reference link filter *******************/ + $url = '~(?:(https?)://([^\s<]+)|(www\.[^\s<]+?\.[^\s<]+))(?<![\.,:])~i'; + $reference = preg_replace($url, '<a href="$0" target="_blank" title="$0">$0</a>', $row->reference); +/******************************/ $form['reference'] = array( '#type' => 'item', - '#markup' => $row->reference, + '#markup' => $reference, '#title' => t('References'), ); $form['reason'] = array( |