You are here

function views_flag_refresh_widgets_get in Views Flag Refresh 7

Same name and namespace in other branches
  1. 6 views_flag_refresh.module \views_flag_refresh_widgets_get()

Returns widget definitions from hook_views_flag_refresh_widgets() implementations.

Parameters

bool $reset: A boolean flagging whether the static should be reset.

Return value

array An array of widget definitions.

2 calls to views_flag_refresh_widgets_get()
views_flag_refresh_add_js in ./views_flag_refresh.module
Adds javascript settings for the view, makes sure the core javascript and settings files
views_flag_refresh_widget_options_get in ./views_flag_refresh.module
Returns an array of widgets keyed by machine readable name to an escaped display name.

File

./views_flag_refresh.module, line 58
Views Flag Refresh allows site administrators to configure which views are refreshed automatically via AJAX when certain flags are selected.

Code

function views_flag_refresh_widgets_get($reset = FALSE) {
  $widgets = drupal_static(__FUNCTION__);
  if (NULL === $widgets) {
    $widgets = module_invoke_all('views_flag_refresh_widgets');
    drupal_alter('views_flag_refresh_widgets', $widgets);
  }
  return $widgets;
}