function joomla_replace_image_link in Joomla to Drupal 6
Same name and namespace in other branches
- 7.2 joomla.module \joomla_replace_image_link()
- 7 joomla.module \joomla_replace_image_link()
1 call to joomla_replace_image_link()
File
- ./
joomla.module, line 871 - The joomla module used for migrate Joomla to Drupal.
Code
function joomla_replace_image_link($text_source) {
//Fixs image string: src="images/
$image_string = 'src="images/';
$images_replace = 'src="' . base_path() . file_directory_path() . '/' . variable_get('joomla_img_folder', JOOMLA_IMG_FOLDER) . '/';
$text_result = str_replace('src="images/', "{$images_replace}", $text_source);
return $text_result;
}