You are here

function jstimer_get_widgets in Javascript Timer 7

Same name and namespace in other branches
  1. 8 jstimer.module \jstimer_get_widgets()
  2. 6 jstimer.module \jstimer_get_widgets()

Get the list of active widgets.

Return value

Array The array of stdClass objects.

6 calls to jstimer_get_widgets()
jstimer_field_formatter_info in ./jstimer.field.inc
Implements hook_field_formatter_info().
jstimer_field_formatter_settings_form in ./jstimer.field.inc
Implements hook_field_formatter_settings_form().
jstimer_field_formatter_settings_summary in ./jstimer.field.inc
Implements hook_field_formatter_settings_summary().
jstimer_field_formatter_view in ./jstimer.field.inc
Implements hook_field_formatter_view(). Normal behavior for two date fields is to use value1 where it is available. Use value2 only if value1 is empty.
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.

... See full list

File

./jstimer.module, line 196

Code

function jstimer_get_widgets($reset = FALSE) {
  static $widgets;
  if (!isset($widgets) || $reset) {

    // get all optional widgets
    $widgets = module_invoke_all('jstwidget');
  }
  return $widgets;
}