function jstimer_get_widgets in Javascript Timer 8
Same name and namespace in other branches
- 6 jstimer.module \jstimer_get_widgets()
- 7 jstimer.module \jstimer_get_widgets()
Get the list of active widgets.
Return value
Array The array of stdClass objects.
2 calls to jstimer_get_widgets()
- jstimer_get_javascript in ./
jstimer.module - Get the actual javascript code that needs to be written into a file. This also aggregates any optional javascript bits.
- theme_jstimer in ./
jstimer.module
File
- ./
jstimer.module, line 141
Code
function jstimer_get_widgets($reset = FALSE) {
static $widgets;
if (!isset($widgets) || $reset) {
// get all optional widgets
$widgets = \Drupal::moduleHandler()
->invokeAll('jstwidget');
}
return $widgets;
}