Now, if i want to override the $block->content which is generated by the Book module... how can I override it and customize the title list? thank you.
相关问题
- Drupal 8: How do I customize a form widget to show
- drupal :: order complete hook and upgrade user per
- Change redirect in Drupal 7 for Password Recovery
- Adding attachment to Jira's api
- How do I stop drupal from creating a different con
相关文章
- Render a Drupal node
- How to allow multiple blocks in a module of Drupal
- How can I redirect a Drupal user after they create
- Drupal 6: Getting custom fields into the database
- Drupal 7 retain file upload
- Drupal - Set 'user/%/edit/uprofile' to def
- Drupal Session User id for independent script
- Drupal - Replace the home page
The $vars argument will have all the information about the blocks being themed. In your case you want the module to be "book".
you can use a preprocess_block function
You can use the preprocess_block function
And dig into those results.
About the content, is this is a module generated block, I hope that
$content
is renderer using atheme()
function, so you just need to alter it.