You are here

function views_flag_refresh_views_flag_refresh_widgets in Views Flag Refresh 7

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

Implements hook_views_flag_refresh_widgets().

File

./views_flag_refresh.module, line 137
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_views_flag_refresh_widgets() {
  $widgets = array();
  $widgets['default'] = array(
    'title' => t('No widget'),
    'description' => t('No display changes are made to the view while it is being refreshed.'),
  );
  $widgets['throbber'] = array(
    'title' => t('Throbber image'),
    'theme hook' => 'throbber',
    'theme hook post' => 'throbberPost',
    'description' => t('Display a throbber image in place of the view content while it is being refreshed.'),
    'css file' => drupal_get_path('module', 'views_flag_refresh') . '/views_flag_refresh.css',
  );
  return $widgets;
}