Module Function Hooks \ getDashboardNotices - mymagic/open_hub GitHub Wiki

For both cpanel and backend, display flash message on top of page.

public function getDashboardNotices($model, $realm = 'backend')
{
    if($realm == 'cpanel'){
        $notices[] = array('message' => 'Hello World', 'type' => Notice_WARNING);
        return $notices;
    }
}