function joomla_replace_image_link in Joomla to Drupal 7
Same name and namespace in other branches
- 6 joomla.module \joomla_replace_image_link()
- 7.2 joomla.module \joomla_replace_image_link()
1 call to joomla_replace_image_link()
File
- ./
joomla.module, line 954 - 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() . variable_get('file_public_path', conf_path() . '/files/') . variable_get('joomla_img_folder', JOOMLA_IMG_FOLDER) . '/';
$text_result = str_replace('src="images/', "{$images_replace}", $text_source);
return $text_result;
}