Conditions | 5 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | function hover_menu($hook, $type, $return, $params) { |
||
38 | |||
39 | if (is_array($return) && $params['entity']->member_selfdelete == "anonymized") { |
||
40 | foreach ($return as $key => $item) { |
||
41 | if ($item->getSection() != "admin") { |
||
42 | unset($return[$key]); |
||
43 | } |
||
44 | } |
||
45 | } |
||
46 | |||
47 | return $return; |
||
48 | } |
||
49 |