function theme_nd_book_add_new_child in Node displays 6.2
Same name and namespace in other branches
- 6.3 nd.module \theme_nd_book_add_new_child()
Add new child for book.
File
- ./
nd.module, line 757 - Node displays.
Code
function theme_nd_book_add_new_child($field) {
if (user_access('add content to books')) {
$child = str_replace('_', '-', variable_get('book_child_type', 'book'));
return l(t('Add child page'), 'node/add/' . $child, array(
'query' => array(
'parent' => $field['object']->book['mlid'],
),
));
}
}