You are here

function favorite_services_service_links in Service links 6.2

Same name and namespace in other branches
  1. 7.2 services/favorite_services.module \favorite_services_service_links()

Implementation of hook_service_links().

File

services/favorite_services.module, line 13
Extends Service Links with browser bookmarking.

Code

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;
}