You are here

favorite_services.module in Service links 6.2

Same filename and directory in other branches
  1. 7.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)
 */

/**
 * Implementation of 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

Namesort descending Description
favorite_services_service_links Implementation of hook_service_links().