Theming
Drupal module development - theming
Yesterday we added permission so only authenticated users will be able to access our test page. Today we're moving on to introducing theming and templates. Up until now, you'll notice that we're generating our test page's html code inside the function dfacebox_test_form. This is valid, but instead we're going to take advantage of Drupal's theming capabilities.
For Drupal to be able to recognize our theming function, we need to implement hook_theme. It returns an array of theming function together with its arguments.
Drupal module development - permissions
As promised, after my Python bragging we're going to resume and wrap-up everything on our dfacebox module. If you still remember, our test page is accessible to anonymous users (users that are not registered). You don't normally exposed module settings or test pages like this so instead, we're going to apply some restriction so only those that have permission to access it will be able to view except for the root account which pretty much can do everything.