You are here

function opigno_opigno_widget_info in Opigno 7.0

Implements hook_opigno_widget_info()

File

./opigno.module, line 118
Contains all hook_implementations and module specific API.

Code

function opigno_opigno_widget_info() {
  $widgets = array(
    'og_tools' => array(
      'info' => t("Opigno: OG tools"),
      'cache' => DRUPAL_CACHE_PER_PAGE,
    ),
    'add_og_content' => array(
      'info' => t("Opigno: Add OG content"),
      'cache' => DRUPAL_CACHE_PER_USER,
    ),
    'og_description' => array(
      'info' => t("Opigno: OG description"),
      'cache' => DRUPAL_CACHE_PER_PAGE,
    ),
    'og_course_progress' => array(
      'info' => t("Opigno: OG Course progress"),
      'cache' => DRUPAL_CACHE_PER_USER,
    ),
  );
  $views_blocks = views_block_info();

  // Calendar widget
  $key = md5('og_ressource_pages-widget_calendar');
  if (isset($views_blocks[$key])) {
    $widgets[$key] = $views_blocks[$key];
  }
  return $widgets;
}