You are here

function clone_token_to_arg in Node clone 7

Implements a to_arg function for the clone local action.

Parameters

string $arg: The current argument value.

array $map: The path arguments.

Return value

string Either 'confirm' or a CSRF token.

File

./clone.module, line 73
Allow users to make a copy of an item of content (a node) and then edit that copy.

Code

function clone_token_to_arg($arg, $map) {

  // Supply CSRF token if needed.
  return clone_get_token($map[1]);
}