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

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

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

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