nodesagency/Platform-Common-Plugin — pull request #5 by AD7six (2012-09-16 15:15:11+00:00)
Title: allow specifying just a callback

A minor tweak to permit in multi-add mode specifying just a callback.

Before, these calls worked:

$this->Menu->add(function() ..)
$this->Menu->add(array(
array('title', ..
array('callback' => function()..
));

However, it was/is intended that the following (also) work:

$this->Menu->add(function() ..)
$this->Menu->add(array(
array('title', ..
function().. // just a callback, no array
));