You are here

function theme_nd_book_add_new_child in Display Suite 6.3

Add new child for book.

File

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