I have Statuses Module installed on one of my site. I have created a view to display the status along with the user picture and the following comments.
The view displays the user picture along with the statuses, but the image style used is the default 'thumbnail' style. I have created my own image style for displaying these images.
Usually in a view when images are added we get a option by default to add image style to it. But in this case I dont have that option.
After a bit of searching I found the following code in the statuses.module to display the user picture:
function statuses_display_user_picture($account, $preset = NULL) {
drupal_add_css(drupal_get_path('module', 'statuses') .'/resources/statuses.css');
$image_vars = array('account' => $account);
if (!empty($preset) && module_exists('imagecache_profiles')) {
$image_vars['user_picture_style'] = $preset;
}
return theme('user_picture', $image_vars);
}
How do I override this code to display the image with my choice of 'image style'.