You are here

function favorites_token in Favorites 7

Same name and namespace in other branches
  1. 7.2 favorites.module \favorites_token()

Generate a token for a particular favorite.

Parameters

$favorite: A favorite object.

Return value

string A token string.

1 call to favorites_token()
favorites_load_favorites in ./favorites.module
Load the favorites for a particular user.

File

./favorites.module, line 339
The favorites module allows users to bookmark any path within a site.

Code

function favorites_token($favorite) {
  return drupal_get_token($favorite->timestamp . $favorite->uid . $favorite->path);
}