function _media_gallery_allow_all_pathauto_aliases in Media Gallery 7
Same name and namespace in other branches
- 7.2 media_gallery.module \_media_gallery_allow_all_pathauto_aliases()
Restores Pathauto behavior after we are done hacking with it.
See also
_media_gallery_prevent_unwanted_pathauto_aliases()
3 calls to _media_gallery_allow_all_pathauto_aliases()
- media_gallery_create_taxonomy_term in ./
media_gallery.install - Helper function to create required taxonomy term.
- media_gallery_entity_insert in ./
media_gallery.module - Implements hook_entity_insert().
- media_gallery_entity_update in ./
media_gallery.module - Implements hook_entity_update().
File
- ./
media_gallery.module, line 1739
Code
function _media_gallery_allow_all_pathauto_aliases() {
if (isset($GLOBALS['conf']['media_gallery_original_pathauto_taxonomy_pattern'])) {
$GLOBALS['conf']['pathauto_taxonomy_pattern'] = $GLOBALS['conf']['media_gallery_original_pathauto_taxonomy_pattern'];
}
}