theme.inc 是控制Drupal输出的主题系统,它允许用户主题定制几乎所有的Drupal系统输出。

函数及方法 Functions & methods

  1. drupal_find_theme_functions - 允许主题或主题引擎轻松重写主题函数.
  2. drupal_find_theme_templates - 允许主题或主题引擎轻松重写主题模板.
  3. drupal_theme_access - 确定是否可以使用该主题.
  4. drupal_theme_initialize - 初始化主题系统.
  5. drupal_theme_rebuild - 强制重建主题注册表; 使用在当增加了新的主题模块或主题钩子时.
  6. list_themes - 返回当前可用主题的列表.
  7. path_to_theme - 返回当前主题的路径.
  8. template_preprocess - Adds a default set of helper variables for variable processors and templates. This comes in before any other preprocess function which makes it possible to be used in default theme implementations (non-overridden theme functions).
  9. template_preprocess_html - html.tpl.php 的预处理变量
  10. template_preprocess_maintenance_page - 这里生成 template_preprocess_page() 的变量数组镜像. 这个预处理将运行于 theme_maintenance_page() 运行时.
  11. template_preprocess_page - page.tpl.php 的预处理变量
  12. template_preprocess_region - region.tpl.php 的预处理变量
  13. template_preprocess_username - theme_username(). 的预处理变量
  14. template_process - 一个默认的进程程序,用于尽可能晚的改变变量.
  15. template_process_html - html.tpl.php 的预处理变量
  16. template_process_maintenance_page - 这里生成 template_process_html() 的变量数组镜像. 这个预处理器将运行于 theme_maintenance_page() 运行时.
  17. template_process_page - page.tpl.php 的预处理变量
  18. template_process_username - theme_username(). 的预处理变量
  19. theme - 生成主题输出.
  20. theme_breadcrumb - 返回面包屑路径的HTML.
  21. theme_disable - Disable a given list of themes.
  22. theme_enable - Enable a given list of themes.
  23. theme_feed_icon - 返回一个订阅图标的HTML.
  24. theme_get_registry - 获取主题注册表.
  25. theme_get_setting - 从当前主题或指定主题获取设置.
  26. theme_get_suggestions - Generate an array of suggestions from path arguments.
  27. theme_html_tag - 返回某常用带有属性HTML标签的HTML.
  28. theme_image - 返回一幅图片的HTML.
  29. theme_indentation - Returns HTML for an indentation div; used for drag and drop tables.
  30. theme_item_list - Returns HTML for a list or nested list of items.
  31. theme_link - 返回一个链接的HTML.
  32. theme_links - 返回一系列链接的HTML.
  33. theme_mark - Returns HTML for a marker for new or updated content.
  34. theme_more_help_link - 返回"更多帮助"链接的HTML.
  35. theme_more_link - 返回“更多”链接的HTML, 象在区块中使用一样.
  36. theme_progress_bar - 返回一个进度条的HTML.
  37. theme_render_template - 使用一个本质上是PHP模板的系统默认模板.
  38. theme_status_messages - 按照状态或错误信息的所属类型分组返回HTML.
  39. theme_table - 返回某表格HTML.
  40. theme_tablesort_indicator - 返回某分类图标的HTML.
  41. theme_username - 返回某用户的HTML, 可能连接到用户页面.
  42. _drupal_theme_access - Helper function for determining access to a theme.
  43. _drupal_theme_initialize - Initialize the theme system given already loaded information. This function is useful to initialize a theme when no database is present.
  44. _template_preprocess_default_variables - Returns hook-independant variables to template_preprocess().
  45. _theme_build_registry - 重建主题注册表缓存.
  46. _theme_load_registry - 从数据库中获取主题注册表缓存,如果不存在,则建立它.
  47. _theme_process_registry - Process a single implementation of hook_theme().
  48. _theme_registry_callback - Set the callback that will be used by theme_get_registry() to fetch the registry.
  49. _theme_save_registry - 将主题注册表缓存写入到数据库.
  50. _theme_table_cell - 为 theme_table() 输出某表格单元的HTML.

常量 Constants

  1. MARK_NEW - Mark content as being new.
  2. MARK_READ - Mark content as read.
  3. MARK_UPDATED - Mark content as being updated.
喜欢这篇文章吗,不妨分享给朋友们吧!