--- audio.module Fri Jun 2 17:46:04 2006
+++ audio.module Fri Jun 23 20:21:26 2006
@@ -221,11 +221,18 @@ function audio_link($type, $node, $main
if ($type == 'node' && $node->type == 'audio') {
if (_audio_allow_download($node)) {
- $links[] = l(t('download audio file'), $node->url_download, NULL);
- $links[] = t('%download_count downloads', array('%download_count' => $node->audio_fileinfo['download_count']));
+ $links['audio_download'] = array (
+ '#title' => t('download audio file'),
+ '#href' => $node->url_download,
+ );
+ $links['audio_down_count'] = array (
+ '#title' => t('%download_count downloads', array('%download_count' => $node->audio_fileinfo['download_count'])),
+ );
}
if (_audio_allow_play($node)) {
- $links[] = t('%play_count plays', array('%play_count' => $node->audio_fileinfo['play_count']));
+ $links['audio_play'] = array (
+ '#title' => t('%play_count plays', array('%play_count' => $node->audio_fileinfo['play_count'])),
+ );
}
}
Comments
Comment #1
drewish commentedtwo things:
* patches should be attached as files
* please look through the existing issues before submitting new ones ( see #64812 )