favorites.module in Favorites 8.2
Same filename and directory in other branches
Create own favorites links.
File
favorites.moduleView 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
Name![]() |
Description |
---|---|
favorites_help | Implements hook_help(). |
favorites_theme | Implements hook_theme(). |