' . $element['#item']['data']['description'].''; } //If user is file owner check for download permission and display download link if ($user->uid==$element['#item']['uid'] && user_access('download own audio files')) { $output .= '
Download:' . theme('filefield_file', $element['#item']) . '
'; } elseif (user_access('download all audio files')) { //If user has permission to download all audio files, then display download link $output .= '
Download:' . theme('filefield_file', $element['#item']) . '
'; } return $output; } /** * TODO:Theme function for popup audiofield field formatter. */ /* function theme_audiofield_formatter_audiofield_popup($element) { return $output; } */