function spaces_core_spaces_node_links_alter in Spaces 5.2
Implementation of hook_spaces_node_links_alter();
File
- spaces_core/
spaces_core.module, line 274
Code
function spaces_core_spaces_node_links_alter(&$links) {
if (isset($links['book'])) {
if ($space = spaces_get_space()) {
if ($space
->feature_access('book') && arg(0) == 'node' && is_numeric(arg(1))) {
$pid = arg(1);
$links['book']['href'] = 'node/add/book/parent/' . $pid;
}
}
}
}