You are here

favorites.module in Favorites 8.2

Same filename and directory in other branches
  1. 6 favorites.module
  2. 7.2 favorites.module
  3. 7 favorites.module

Create own favorites links.

File

favorites.module
View source
<?php

/**
 * @file
 * Create own favorites links.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function favorites_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.favorites':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Allows users to add paths on a site to their list of favorites') . ' </p>';
      return $output;
  }
}

/**
 * Implements hook_theme().
 */
function favorites_theme() {
  return array(
    'favlist_item_list' => array(
      'render element' => 'content',
    ),
  );
}

Functions

Namesort descending Description
favorites_help Implements hook_help().
favorites_theme Implements hook_theme().