function mobile_codes_data_url_alias in Mobile Codes 7.2
Same name and namespace in other branches
- 6.2 includes/mobile_codes.inc \mobile_codes_data_url_alias()
Implements mobile_codes_data_TYPE_SETTING().
File
- includes/
mobile_codes.inc, line 33 - Mobile Codes module integration.
Code
function mobile_codes_data_url_alias(&$data) {
global $base_url;
$path = str_replace("{$base_url}/", '', $data);
$alias = drupal_get_path_alias($path);
$data = str_replace($path, $alias, $data);
}