fixed compatibility with module flag_lists 3.x

converted materiobasemod js processor to gulp
This commit is contained in:
Bachir Soussi Chiadmi
2016-11-01 16:50:23 +01:00
parent d712e5881a
commit 2ed8b48636
19 changed files with 207 additions and 2405 deletions

View File

@@ -166,7 +166,7 @@ function materio_flag_block_view($delta = '') {
$block['subject'] = t('My bookmarks');
$block['content'] = t('No bookmarks yet. Add bookmarks on clicking on results star');
}
drupal_add_js(drupal_get_path('module', 'materio_flag').'/js/materio_flag.min.js');
drupal_add_js(drupal_get_path('module', 'materio_flag').'/js/dist/materio_flag.min.js');
}
break;
case 'materio_flag_mylists':
@@ -207,7 +207,7 @@ function materio_flag_block_view($delta = '') {
$block['subject'] = t('My '. variable_get('flag_lists_name', 'list') .'s');
$block['content'] = t('No !listname yet. Add !listname on clicking on results star', array('!listname'=>variable_get('flag_lists_name', 'list')));
}
drupal_add_js(drupal_get_path('module', 'materio_flag').'/js/materio_flag.min.js');
drupal_add_js(drupal_get_path('module', 'materio_flag').'/js/dist/materio_flag.min.js');
}
break;
case 'materio_flag_mylists_nav':
@@ -386,7 +386,7 @@ function materio_flag_get_entity_links($entity, $type, $view_mode = null){
if(isset($ops)){
// dsm($ops, 'ops');
drupal_add_js(drupal_get_path('module', 'materio_flag').'/js/materio_flag.min.js');
drupal_add_js(drupal_get_path('module', 'materio_flag').'/js/dist/materio_flag.min.js');
$ops['#theme'] = "materio_flag_mylists_entity_links";
return $ops;
}
@@ -499,4 +499,3 @@ function template_preprocess_materio_flag_mylists_list(&$vars) {
// dsm($vars, '$vars');
}