delicious-1.png

This project is not covered by Drupal’s security advisory policy.

This module provides integration with the REST API at http://del.icio.us

It will use your cron tasks to download tags; each user with the right privilege can have one set of delicious tags and links. The administrator can create blocks that can contain links only from a given set of users, a given set of tags, or a combination of both. If enabled, nodes can be scanned for words which match del.icio.us tags and create smart-links, and if enabled, the first vocabulary term of a node can be added as a del.icio.us tag link using that term the tag.

The new hook allows you to modify the terms or users before the query. So, in the example below, the block is changed so that when on a node page, only delicious tags that match the nodes taxonomy are displayed, and when on search page, only delicious tags that match the current search terms are displayed.

function example_delicious($op, &$items) {
  if ($op == 'tags') {
    switch (arg(0)) {
      case 'node':
        $tags = array();
        if (($nid = arg(1)) && !arg(2)) {
          $node = node_load($nid);
          foreach ($node->taxonomy as $tid => $term) {
            $tags[$term->name] = $term->name;
          }
        }
        return $tags;
      case 'search':
        $query = search_parse_query(search_get_keys());
        return $query[3];
    }
  }
}

Previous Maintainers

Paul Booker

Project information

Releases