function generateStudioModuleButtons() { require_once 'modules/ModuleBuilder/Module/StudioBrowser.php'; $sb = new StudioBrowser(); $sb->loadModules(); $nodes = $sb->getNodes(); $this->buttons = array(); //$GLOBALS['log']->debug(print_r($nodes,true)); foreach ($nodes as $module) { $this->buttons[$module['name']] = array('action' => $module['action'], 'imageTitle' => ucfirst($module['module'] . "_32"), 'size' => '32'); } }
function generateStudioModuleButtons() { require_once 'modules/ModuleBuilder/Module/StudioBrowser.php'; $sb = new StudioBrowser(); $sb->loadModules(); $nodes = $sb->getNodes(); $this->buttons = []; foreach ($nodes as $module) { $this->buttons[$module['name']] = ['action' => $module['action'], 'imageTitle' => ucfirst($module['module'] . "_32"), 'size' => '32', 'linkId' => 'studiolink_' . $module['module']]; } }