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

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.

主站蜘蛛池模板: 类乌齐县| 龙里县| 宁强县| 合肥市| 柳林县| 辉县市| 岳池县| 原阳县| 延边| 彩票| 若尔盖县| 叶城县| 辽阳市| 六盘水市| 静安区| 吉木乃县| 乐都县| 新巴尔虎右旗| 乌审旗| 潜山县| 宁陵县| 阿坝县| 凤山县| 定远县| 山阳县| 鞍山市| 隆尧县| 炎陵县| 封丘县| 井冈山市| 饶阳县| 阜南县| 德阳市| 澳门| 兴仁县| 胶南市| 贵阳市| 定陶县| 潮安县| 广东省| 新化县|