module_menu() html()
A row of a() buttons for the actions of an admin module; the button of the current action is disabled and highlighted.
html()->module_menu($obj, $items = [], $extra = [])Options
| Option | Meaning |
|---|---|
$obj | The module (not used yet). |
$items | Rows [url, title, icon, text, ..., target, no_text], the arguments of a(). |
Example
Code
return html()->module_menu(null, [
['/@object/', 'Overview', 'fa fa-home'],
['/@object/html/module_menu', 'This page', 'fa fa-list', '', '', '_self'],
['/@object/html/a', 'Links', 'fa fa-link', '', '', '_self'],
]);See also: html/a, html/dropdown