function data_node_add_path in Data 6
Generate the path for an add link for an item/node pair.
1 call to data_node_add_path()
- data_node_render_add_link in data_node/
data_node.module - Render an add link for a given item..
File
- data_node/
data_node.module, line 395 - Hooks and API functions for Data Node module.
Code
function data_node_add_path($table, $id, $nid) {
$token = drupal_get_token(_data_node_hash($table, $id, $nid));
$table_name = $table
->get('name');
return "data-node/add/{$table_name}/{$id}/{$nid}/{$token}";
}