I've following code in a controller:
....
// Action menu (dropdown)
$menu = new action_menu(array(
new action_menu_link_secondary(new moodle_url($this->page->url, array('variable' => 1)), null, 1),
new action_menu_link_secondary(new moodle_url($this->page->url, array('variable' => 2)), null, 2),
new action_menu_link_secondary(new moodle_url($this->page->url, array('variable' => 3)), null, 3),
and so on,
));
$menu->set_menu_trigger(get_string('language string', 'moodle', $value));
...
In the last coderule I want to fill in for $value the (chosen) value of the variable out of the new action_menu(array).
But I've problems to retrieve the values 1,2,3.... from this action_menu.
Can anybody help with this?