diff twitter.inc
158a159
>     'media' => $status->media,
diff twitter.install
111a112,117
>       'media' => array(
>         'description' => "Url to a media file included in the tweet",
>         'type' => 'varchar',
>         'length' => 255,
>         ' not null' => FALSE,
>       ),
428a435,447
> }
> 
> /**
>  * Adds a field to store media
>  */
> function twitter_update_7501(){
>   $media = array(
>     'description' => "Url to a media file included in the tweet for use in views",
>     'type' => 'varchar',
>     'length' => 255,
>     ' not null' => FALSE,
>   );
>   db_add_field('twitter', 'media', $media);
diff twitter.lib.php
1266a1267,1268
>   public $media;
> 
1270a1273,1285
>     $from = array();
>     $to = array();
>     if(isset($values['entities']['media'])){
>       $from[] = $values['entities']['media']['0']['url'];
>       $to[] = '<a href="'.$values['entities']['media']['0']['url'].'" title="'.$values['entities']['media']['0']['expanded_url'].'">'.$values['entities']['media']['0']['display_url'].'</a>';
>       $this->media = $values['entities']['media']['0']['media_url'];
>     }
>     foreach($values['entities']['urls'] as $url){
>       var_dump($url);
>       $from[] = $url['url'];
>       $to[] = '<a href="'.$url['url'].'" title="'.$url['expanded_url'].'">'.$url['display_url'].'</a>';
>     }
>     
1273c1288
<     $this->text = $values['text'];
---
>     $this->text = str_replace($from, $to, $values['text']);
diff twitter_views_field_handlers.inc
80a81,90
>  * Field handler to provide image display from the media links
>  */
> class twitter_views_handler_field_media extends views_handler_field {
>   function render($values) {
>     $value = $values->{$this->field_alias};
>     return $value;//theme('image', array('path' => $value));
>   }
> }
> 
> /**
diff twitter.views.inc
168c168,176
< 
---
>   
>   //media field
>   $data['twitter']['media'] = array(
>     'title' => t('Twitter media url'),
>     'help' => t('Media url'),
>     'field' => array(
>       'handler' =>'twitter_views_handler_field_media',
>     ),
>   );