@@ 498-503 (lines=6) @@ | ||
495 | } |
|
496 | break; |
|
497 | ||
498 | case self::EXTEND: |
|
499 | $params = $perm_details['hook']; |
|
500 | $handler = $params['handler']; |
|
501 | $priority = isset($params['priority']) ? $params['priority'] : 500; |
|
502 | elgg_register_plugin_hook_handler($hook_name, $type, $handler, $priority); |
|
503 | break; |
|
504 | ||
505 | case self::REPLACE: |
|
506 | $params = $perm_details['hook']; |
|
@@ 553-558 (lines=6) @@ | ||
550 | } |
|
551 | break; |
|
552 | ||
553 | case self::EXTEND: |
|
554 | $params = elgg_extract('event', $perm_details); |
|
555 | $handler = $params['handler']; |
|
556 | $priority = isset($params['priority']) ? $params['priority'] : 500; |
|
557 | elgg_register_event_handler($event_name, $type, $handler, $priority); |
|
558 | break; |
|
559 | ||
560 | case self::REPLACE: |
|
561 | $params = elgg_extract('event', $perm_details); |