theme.inc 是控制Drupal输出的主题系统,它允许用户主题定制几乎所有的Drupal系统输出。
函数及方法 Functions & methods
- drupal_find_theme_functions - 允许主题或主题引擎轻松重写主题函数.
- drupal_find_theme_templates - 允许主题或主题引擎轻松重写主题模板.
- drupal_theme_access - 确定是否可以使用该主题.
- drupal_theme_initialize - 初始化主题系统.
- drupal_theme_rebuild - 强制重建主题注册表; 使用在当增加了新的主题模块或主题钩子时.
- list_themes - 返回当前可用主题的列表.
- path_to_theme - 返回当前主题的路径.
- 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).
- template_preprocess_html - html.tpl.php 的预处理变量
- template_preprocess_maintenance_page - 这里生成 template_preprocess_page() 的变量数组镜像. 这个预处理将运行于 theme_maintenance_page() 运行时.
- template_preprocess_page - page.tpl.php 的预处理变量
- template_preprocess_region - region.tpl.php 的预处理变量
- template_preprocess_username - theme_username(). 的预处理变量
- template_process - 一个默认的进程程序,用于尽可能晚的改变变量.
- template_process_html - html.tpl.php 的预处理变量
- template_process_maintenance_page - 这里生成 template_process_html() 的变量数组镜像. 这个预处理器将运行于 theme_maintenance_page() 运行时.
- template_process_page - page.tpl.php 的预处理变量
- template_process_username - theme_username(). 的预处理变量
- theme - 生成主题输出.
- theme_breadcrumb - 返回面包屑路径的HTML.
- theme_disable - Disable a given list of themes.
- theme_enable - Enable a given list of themes.
- theme_feed_icon - 返回一个订阅图标的HTML.
- theme_get_registry - 获取主题注册表.
- theme_get_setting - 从当前主题或指定主题获取设置.
- theme_get_suggestions - Generate an array of suggestions from path arguments.
- theme_html_tag - 返回某常用带有属性HTML标签的HTML.
- theme_image - 返回一幅图片的HTML.
- theme_indentation - Returns HTML for an indentation div; used for drag and drop tables.
- theme_item_list - Returns HTML for a list or nested list of items.
- theme_link - 返回一个链接的HTML.
- theme_links - 返回一系列链接的HTML.
- theme_mark - Returns HTML for a marker for new or updated content.
- theme_more_help_link - 返回"更多帮助"链接的HTML.
- theme_more_link - 返回“更多”链接的HTML, 象在区块中使用一样.
- theme_progress_bar - 返回一个进度条的HTML.
- theme_render_template - 使用一个本质上是PHP模板的系统默认模板.
- theme_status_messages - 按照状态或错误信息的所属类型分组返回HTML.
- theme_table - 返回某表格HTML.
- theme_tablesort_indicator - 返回某分类图标的HTML.
- theme_username - 返回某用户的HTML, 可能连接到用户页面.
- _drupal_theme_access - Helper function for determining access to a theme.
- _drupal_theme_initialize - Initialize the theme system given already loaded information. This function is useful to initialize a theme when no database is present.
- _template_preprocess_default_variables - Returns hook-independant variables to template_preprocess().
- _theme_build_registry - 重建主题注册表缓存.
- _theme_load_registry - 从数据库中获取主题注册表缓存,如果不存在,则建立它.
- _theme_process_registry - Process a single implementation of hook_theme().
- _theme_registry_callback - Set the callback that will be used by theme_get_registry() to fetch the registry.
- _theme_save_registry - 将主题注册表缓存写入到数据库.
- _theme_table_cell - 为 theme_table() 输出某表格单元的HTML.
常量 Constants
- MARK_NEW - Mark content as being new.
- MARK_READ - Mark content as read.
- MARK_UPDATED - Mark content as being updated.