You are here

function theme_nd_book_add_new_child in Node displays 6.3

Same name and namespace in other branches
  1. 6.2 nd.module \theme_nd_book_add_new_child()

Add new child for book.

File

./nd.module, line 731
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'],
      ),
    ));
  }
}