Empower developers with tools that assist with developing and debugging the frontend or backend of the site.

URL Operations

This module aims to provide entity-level, secure URLs for manipulating entities.

What does this mean?!

This module will, currently, produce one-time-use URLs for the following:

  • Nodes:
    • Publish
    • Unpublish
  • Comments:
    • Publish
    • Unpublish
  • Users:
    • Block

These URLs are secured against the private salt on the site, the generated timestamp, the user ID that generate the link and more. The node actions, for example, are also secured against the node changed timestamp so any modification to a node makes a URL invalid (as the hash will change based on the node last changed timestamp). It also means that if an editor alters a node after a link is made, the link becomes invalid.

Administrators can configure how long a link should "live for". If an expiry of 1 hour is set then the timestamp in the URL is used to check that the link is still valid when it is visited. This helps improve security by not leaving dead links lying around.

Link API

Overview

The Link API is a set of modules for managing URLs.

The basic API module provides no useful end-user functionality on its own, but does provide a flexible API for storing and retrieving URL information in the database. It can be leveraged by other modules which need to keep track of link information.

7.x Features

The 7.x branch has none of the modules of 6.x currently, however they may be ported in the future. Currently, it consists entirely of classes for normalising, validating and manipulating URLs. You should only install if you require it for another module, or want to use its features in your own code.

NOTE The internal API changed in a recent 7.x-2.x development snapshot. If you are using it in your own project you may need to update some of your code.

Usage

To normalise and sanitize a URL...

$link = link_api_url('http://example.com/some/path')
$url = $link->getUrl();

To load a URL helper:
<?php
// Normalise.
$normalised_url = link_api_helper()->normaliseURL($url);

// Convert a relative link to an absolute link.
$base_url = 'http://someurl.com/with/other/parts';
$url_parts = link_api_url('with/parts')
->getParts(PHP_URL_PATH);
$url = link_api_helper()->relativeToAbsolute($base_url, $url_parts);

// Normalise a query string.

TwitterAPI

The Twitter API module is used for supporting other modules that want to integrate with Twitter.

form_repost

Reposts data from any form to a specified url via drupal_http_request. Useful for easy integration with rest APIs, and provides limited field mapping capability. More information soon.

Open Media Broadcast Schedule

Open Media Broadcast Schedule provides Drupal-side schedule integration for broadcast playback servers. It creates an airing content type, via features, that stores the current schedule.

Devel extended logging

If you're a "tail -f" kind of debugger, you may find this module useful. It adds a number of functions that write to the debug log file:

Pages

Subscribe with RSS Subscribe to RSS - Developer tools