Tidypics on index question

I think I'm going in the right direction. I'm stuck on the vars part for the icon view.

echo elgg_view("tidypics/icon",array('mimetype' => $image));

I'm not sure what goes in the () after "array". I have been trying to understand how the vars work from the icon.php file. I think this is the one that is getting me:
if ($thumbnail && strpos($mime, "image/")!==false)
Any help is appreciated, thanks.
  • Hello Skot,

    I have not so much experience but with the help of my friend pedro I knew that the array you have to pass is the types of the images:

    $images = array('image/jpeg', 'image/gif', 'image/png', 'image/pjpeg');

    so:

    $images = array('image/jpeg', 'image/gif', 'image/png', 'image/pjpeg');

    echo elgg_view("tidypics/icon",array('mimetype' => $image));

    I hope this can help

    Cheers