You are here

favorite_services.module in Service links 7.2

Same filename and directory in other branches
  1. 6.2 services/favorite_services.module

Extends Service Links with browser bookmarking.

@author Fabio Mucciante (TheCrow)

File

services/favorite_services.module
View source
<?php

/**
 * @file
 * Extends Service Links with browser bookmarking.
 *
 * @author Fabio Mucciante (TheCrow)
 */

/**
 * Implements hook_service_links().
 */
function favorite_services_service_links() {
  $links['favorite'] = array(
    'name' => t('Favorite'),
    'description' => t('Add this page in your favorites'),
    'link' => '<url>&favtitle=<raw-encoded-title>',
    'attributes' => array(
      'style' => 'display:none;',
    ),
    'javascript' => 'favorite_services.js',
  );
  return $links;
}

Functions