aboutsummaryrefslogtreecommitdiff
path: root/documentation/examples/hooks/trigger/advanced.php
blob: 5901a06e012c55aca5b706648cef85436475e83e (plain)
1
2
3
4
5
6
7
8
9
<?php

$default = array('Entry 1', 'Entry 2', 'Entry 3');

$menu = elgg_trigger_plugin_hook('get_menu_items', 'menu', null, $default);

foreach ($menu as $item) {
	var_dump($item);
}