We're getting close to the end, now. We have only three more functions to go.
So far, we've created an installer, implemented hooks to create the database tables, implemented access controls, created a form, and developed functions for maintaining our custom tables.
In this section, we will look at functions used for accessing our content. And once again, we will be moving back toward the familiar. We will start by implementing hook_load()
, then we will take a look at hook_view()
and hook_theme()
.
Note
In the subsection Getting the Node's Content in Chapter 4, we used the function node_load()
to load the contents of a node. That function is an implementation of hook_node()
. In that chapter we also looked carefully at adding theme support to a module, covering hook_theme()
as well.