roles[1])){ $items = $vars['items']; $vars['items'] = array($items[0]); } } # this does not work because of security probleme # http://drupal.org/node/1923554 # http://drupal.stackexchange.com/questions/63226/drupal-7-20-image-styles-return-a-url-with-access-denied // if($vars['element']['#field_type'] == 'text_with_summary'){ // foreach ($vars['items'] as $key => $value) { // $text = $vars['items'][$key]['#markup']; // parseImagesOntext($text); // $vars['items'][$key]['#markup'] = $text; // } // }