官术网_书友最值得收藏!

Chapter 4. Theming Modules

In the last chapter, we took a look at the Drupal theme system, and created our own theme. This chapter will begin where we left off, but with a twist—this time we will create a module with a default theme. To do this, we will develop a new module.

The Philosophy Quotes module that we will create in this chapter will use Drupal's theme system and a simple database query to theme the content of a custom content type.

Here are some of the items we will cover while working on this module:

  • Creating a custom content type
  • Performing simple database operations
  • Registering a module's theme functions with the hook_theme() function
  • Adding theme hooks to a module
  • Adding CSS stylesheets to a module's default theme
  • Using theme CSS and template files to override default module theme functions

In the next chapter, we will continue with this module. There, we will augment our Philosophy Quotes module with some JavaScript.

主站蜘蛛池模板: 博客| 嘉黎县| 获嘉县| 新余市| 灯塔市| 政和县| 临朐县| 宕昌县| 宜都市| 冷水江市| 潞西市| 任丘市| 靖远县| 青阳县| 宝清县| 吉首市| 水城县| 马公市| 同仁县| 镇宁| 浙江省| 乐亭县| 安义县| 泰安市| 新建县| 沅江市| 泊头市| 剑河县| 松滋市| 前郭尔| 姚安县| 温州市| 娄烦县| 佛教| 沁阳市| 灵山县| 南京市| 怀安县| 思茅市| 南漳县| 房产|