Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
http://api.drupal.org/api/drupal/core!modules!user!user.module/function/...
foreach (module_implements('permission') as $module) {
$function = $module . '_permission';
if ($permissions = $function('permission')) {
should be
foreach (module_implements('permission') as $module) {
$function = $module . '_permission';
if ($permissions = $function()) {
Exists back to d7, introduced in #334030: replace module_list with module_implements when calling a hook
Comment | File | Size | Author |
---|---|---|---|
#6 | 1864188-6-user_filters_d7.patch | 608 bytes | johnshortess |
#2 | 1864188-1-user_filters_hook_permission.patch | 628 bytes | johnshortess |
Comments
Comment #1
johnshortessComment #2
johnshortessI think this should fix it.
Comment #3
marvin_B8 CreditAttribution: marvin_B8 commentedsry tested and everything nice
Comment #4
hefox CreditAttribution: hefox commentedLooks good to me
Comment #5
Dries CreditAttribution: Dries commentedCommitted to 8.x. Sounds like this needs to be backported to 7.x.
Comment #6
johnshortessAnd here's a patch for D7.
Comment #7
marvin_B8 CreditAttribution: marvin_B8 commentedLooks good to me, no problems.
Comment #8
David_Rothstein CreditAttribution: David_Rothstein commentedFun stuff. Committed to 7.x - thanks! http://drupalcode.org/project/drupal.git/commit/5c9c9a6