Admin Toolbar Method fillAdminToolbar()

public function fillAdminToolbar(
&$adminToolbar, $cID, $cType, $cVersion
) { //...your PHP code...// }

Summary

This method lets you alter the contents of the Admin Toolbar, before it is sent to the client.

Context

This method is called when the Admin Toolbar is displayed, and your module has a toolbar, section or a button placed on the Admin Toolbar that you might need to customise.

(If your module does not have a toolbar, section or a button defined in your TUIX files then its fillAdminToolbar() method will not be called.)

Where You Can Use It

From Zenario 7.0 onwards.

Description

You should use this method to adjust your buttons. For example, certain buttons may need to be either shown or hidden depending on the properties of the current content item, or you may wish to set tooltips relevant to the current content item.

Parameters

&$adminToolbar

The elements and properties that define the Admin Toolbar, in the form of a PHP array.

You should make changes to this array as needed.

$cID

$cType

$cVersion

The Content Id, Type and Version of the current page.

Return Value

No return value is needed.