* Replace the "<a href=...></a>" string with an l() call.
);
$form['url'] = array(
'#type' => 'markup',
- '#value' => t('URL') .': '. $url,
+ '#value' => t('URL: !url', array('!url' => $url)),
'#prefix' => '<div class="filefield-edit-file-url">',
'#suffix' => '</div>',
);
: $file['filepath'];
$url = file_create_url($path);
- $name = $file['filename'];
$desc = $file['description'];
- return '<a href="'. check_url($url) .'">'. check_plain($desc) .'</a>';
+ return l($desc, $url);
}
return '';
}