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

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.

主站蜘蛛池模板: 临武县| 古丈县| 石河子市| 邢台市| 浦城县| 大化| 牙克石市| 房山区| 获嘉县| 南投县| 牙克石市| 荃湾区| 务川| 曲麻莱县| 天祝| 房山区| 保德县| 宁国市| 中牟县| 手游| 宜章县| 禄丰县| 达孜县| 巴彦淖尔市| 四子王旗| 宁强县| 洪泽县| 沾益县| 边坝县| 南华县| 贡嘎县| 河津市| 汪清县| 大埔县| 专栏| 邮箱| 襄垣县| 扎兰屯市| 云林县| 喀什市| 洪雅县|