欢迎莅临阿Q的项目

专业WP商业设计开发销售中心

[手册]Drupal API 之 drupal_get_* 系列

在制作Drupla模板时,我经常想重写核心函数来表现特殊的方法,比如想输出一下标题,或者获取表单或文件名,这里就需要用到Drupal API 的 drupal_get_* 函数。

我在制作Drupla模板时想重写一下核心函数来表现特殊,比如想输出一下标题,或者获取表单或文件名,会经常用到 Drupal API 的 drupal_get_* 函数:

Functions & methods

Name Location Description
drupal_get_bootstrap_phase includes/
bootstrap.inc
Returns the current bootstrap phase for this Drupal process.
drupal_get_breadcrumb includes/
common.inc
Get the breadcrumb trail for the current page.
drupal_get_css includes/
common.inc
Returns a themed representation of all stylesheets that should be attached to the page.
drupal_get_database_types includes/
install.inc
Return all supported database installer objects that are compiled into PHP.
drupal_get_destination includes/
common.inc
Prepare a 'destination' URL query parameter for use in combination with drupal_goto().
drupal_get_feeds includes/
common.inc
Get the feed URLs for the current page.
drupal_get_filename includes/
bootstrap.inc
Returns and optionally sets the filename for a system item (module, theme, etc.). The filename, whether provided, cached, or retrieved from the database, is only returned if the file exists.
drupal_get_filetransfer_info includes/
common.inc
Drupal FileTransfer registry.
drupal_get_form includes/
form.inc
Wrapper for drupal_build_form() for use when $form_state is not needed.
drupal_get_hash_salt includes/
common.inc
Get a salt useful for hardening against SQL injection.
drupal_get_html_head includes/
common.inc
Retrieve output to be displayed in the HEAD tag of the HTML page.
drupal_get_http_header includes/
bootstrap.inc
Get the HTTP response headers for the current page.
drupal_get_installed_schema_version includes/
install.inc
Returns the currently installed schema version for a module.
drupal_get_js includes/
common.inc
Returns a themed presentation of all JavaScript code for the current page.
drupal_get_library includes/
common.inc
Retrieves information for a JavaScript/CSS library.
drupal_get_messages includes/
bootstrap.inc
Return all messages that have been set.
drupal_get_normal_path includes/
path.inc
Given a path alias, return the internal path it represents.
drupal_get_path includes/
common.inc
Returns the path to a system item (module, theme, etc.).
drupal_get_path_alias includes/
path.inc
Given an internal Drupal path, return the alias set by the administrator.
drupal_get_private_key includes/
common.inc
Ensure the private key variable used to generate tokens is set.
drupal_get_profile includes/
common.inc
Get the name of the currently active install profile.
drupal_get_query_array includes/
common.inc
Split an URL-encoded query string into an array.
drupal_get_query_parameters includes/
common.inc
Process a URL query parameter array to remove unwanted elements.
drupal_get_rdf_namespaces includes/
common.inc
Returns a string containing RDF namespace declarations for use in XML and XHTML output.
drupal_get_region_content includes/
common.inc
Get assigned content for a given region.
drupal_get_schema includes/
bootstrap.inc
Get the schema definition of a table, or the whole database schema.
drupal_get_schema_unprocessed includes/
common.inc
Returns the unprocessed and unaltered version of a module's schema.
drupal_get_schema_versions includes/
install.inc
Returns an array of available schema versions for a module.
drupal_get_title includes/
bootstrap.inc
获取当前页面的标题,用来显示在页面或文档标题.
drupal_get_token includes/
common.inc
Generate a token based on $value, the current user session and private key.
drupal_get_updaters includes/
common.inc
Drupal Updater registry.
drupal_get_user_timezone includes/
bootstrap.inc
Return the time zone of the current user.
_drupal_get_last_caller includes/
errors.inc
Gets the last caller from a backtrace.
如果喜欢本文,请分享给朋友们