CRM-18317 - Links to Drupal system broken if hook altered by a module
authorrollox <rollox@users.noreply.github.com>
Wed, 30 Mar 2016 23:04:19 +0000 (00:04 +0100)
committerrollox <rollox@users.noreply.github.com>
Wed, 30 Mar 2016 23:04:19 +0000 (00:04 +0100)
Let Drupal (6 or 7) handle the generation of system links to 'admin/.../permissions' so that the urls can be hook altered if necessary by modules like Rename Admin Paths:
https://www.drupal.org/project/rename_admin_paths

CRM/Admin/Page/Access.php

index e7fa0e7bf0d961080fadc2771f6a198afe3f89d6..588095af65fd94a87694b38a696deb07322a24fc 100644 (file)
@@ -45,11 +45,11 @@ class CRM_Admin_Page_Access extends CRM_Core_Page {
 
     switch ($config->userFramework) {
       case 'Drupal':
-        $this->assign('ufAccessURL', CRM_Utils_System::url('admin/people/permissions'));
+        $this->assign('ufAccessURL', url('admin/people/permissions'));
         break;
 
       case 'Drupal6':
-        $this->assign('ufAccessURL', CRM_Utils_System::url('admin/user/permissions'));
+        $this->assign('ufAccessURL', url('admin/user/permissions'));
         break;
 
       case 'Joomla':