You are here

function _notifications_signature in Notifications 6.4

Same name and namespace in other branches
  1. 5 notifications.module \_notifications_signature()
  2. 6 notifications.module \_notifications_signature()
  3. 6.2 notifications.module \_notifications_signature()
  4. 6.3 notifications.module \_notifications_signature()

Signature for url parameters

Parameters

$params: Ordered path elements

$query: Query string elements

3 calls to _notifications_signature()
notifications_anonymous_url in notifications_anonymous/notifications_anonymous.module
Create signed URLs for all pages
notifications_check_signature in ./notifications.module
Check signature
_notifications_get_link in ./notifications.module
Get notifications link from elements and params

File

./notifications.module, line 1869
Notifications module

Code

function _notifications_signature($params, $query = array()) {
  $payload = implode('/', $params) . ':' . ($query ? notifications_array_serialize($query) : 'none');
  return md5('notifications' . drupal_get_private_key() . ':' . $payload);
}