added code for remove all http on file address
This commit is contained in:
parent
edba04f103
commit
951c9114a2
@ -210,3 +210,13 @@ function materio_admin_form_simplenews_node_form_alter(&$form, &$form_state, $fo
|
|||||||
function materio_admin_getSimplenewsNodeBodyTemplate($cat){
|
function materio_admin_getSimplenewsNodeBodyTemplate($cat){
|
||||||
return file_get_contents(drupal_get_path('module', 'materio_admin').'/templates/simplenews_'.$cat.'_node.html');
|
return file_get_contents(drupal_get_path('module', 'materio_admin').'/templates/simplenews_'.$cat.'_node.html');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function materio_admin_process_html(&$vars)
|
||||||
|
{
|
||||||
|
foreach (array('head', 'styles', 'scripts') as $replace) {
|
||||||
|
if (!isset($vars[$replace])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$vars[$replace] = preg_replace('/(src|href|@import )(url\(|=)(")http(s?):/', '$1$2$3', $vars[$replace]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user