Skip to content

Commit

Permalink
Issue #5565: Add ability to get a book mlid value from within Views.
Browse files Browse the repository at this point in the history
By @schoenid, @herbdool, @BWPanda, and @indigoxela.
  • Loading branch information
schoenid committed Jun 21, 2022
1 parent 22df38e commit 2ffef97
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions core/modules/book/views/book.views.inc
Expand Up @@ -48,6 +48,18 @@ function book_views_data() {
),
);

$data['book_menu_links']['mlid'] = array(
'title' => t('Menu link ID'),
'help' => t('The menu link ID of the book page.'),
'field' => array(
'handler' => 'views_handler_field_numeric',
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);

$data['book_menu_links']['weight'] = array(
'title' => t('Weight'),
'help' => t('The weight of the book page.'),
Expand Down

1 comment on commit 2ffef97

@backdrop-ci
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.