docs
docs copied to clipboard
Using widgets page - countwidgets function has conflicting information
The Using Widgets page has two different snippets for the countwidgets function, which give conflicting information.
The first says 'Note that this function also requires the 'zone' parameter, which is optional in widgets. Zone must be either frontend or backend.' and the second says 'This function takes an optional second argument for the 'zone': countwidgets('dashboard_top', 'backend'). Zone must be either frontend or backend.'
I'm not sure which is correct, but I think it works even without the zone parameter.