function jstimer_get_widgets in Javascript Timer 6
Same name and namespace in other branches
- 8 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 205 
- A module which creates javascript timed dhtml things.
Code
function jstimer_get_widgets($reset = FALSE) {
  static $widgets;
  if (!isset($widgets) || $reset) {
    // get all optional widgets
    $widgets = module_invoke_all('jstwidget');
  }
  return $widgets;
}