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

Functions & methods

NameLocationDescription
drupal_get_bootstrap_phaseincludes/
bootstrap.inc
Returns the current bootstrap phase for this Drupal process.
drupal_get_breadcrumbincludes/
common.inc
Get the breadcrumb trail for the current page.
drupal_get_cssincludes/
common.inc
Returns a themed representation of all stylesheets that should be attached to the page.
drupal_get_database_typesincludes/
install.inc
Return all supported database installer objects that are compiled into PHP.
drupal_get_destinationincludes/
common.inc
Prepare a 'destination' URL query parameter for use in combination with drupal_goto().
drupal_get_feedsincludes/
common.inc
Get the feed URLs for the current page.
drupal_get_filenameincludes/
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_infoincludes/
common.inc
Drupal FileTransfer registry.
drupal_get_formincludes/
form.inc
Wrapper for drupal_build_form() for use when $form_state is not needed.
drupal_get_hash_saltincludes/
common.inc
Get a salt useful for hardening against SQL injection.
drupal_get_html_headincludes/
common.inc
Retrieve output to be displayed in the HEAD tag of the HTML page.
drupal_get_http_headerincludes/
bootstrap.inc
Get the HTTP response headers for the current page.
drupal_get_installed_schema_versionincludes/
install.inc
Returns the currently installed schema version for a module.
drupal_get_jsincludes/
common.inc
Returns a themed presentation of all JavaScript code for the current page.
drupal_get_libraryincludes/
common.inc
Retrieves information for a JavaScript/CSS library.
drupal_get_messagesincludes/
bootstrap.inc
Return all messages that have been set.
drupal_get_normal_pathincludes/
path.inc
Given a path alias, return the internal path it represents.
drupal_get_pathincludes/
common.inc
Returns the path to a system item (module, theme, etc.).
drupal_get_path_aliasincludes/
path.inc
Given an internal Drupal path, return the alias set by the administrator.
drupal_get_private_keyincludes/
common.inc
Ensure the private key variable used to generate tokens is set.
drupal_get_profileincludes/
common.inc
Get the name of the currently active install profile.
drupal_get_query_arrayincludes/
common.inc
Split an URL-encoded query string into an array.
drupal_get_query_parametersincludes/
common.inc
Process a URL query parameter array to remove unwanted elements.
drupal_get_rdf_namespacesincludes/
common.inc
Returns a string containing RDF namespace declarations for use in XML and XHTML output.
drupal_get_region_contentincludes/
common.inc
Get assigned content for a given region.
drupal_get_schemaincludes/
bootstrap.inc
Get the schema definition of a table, or the whole database schema.
drupal_get_schema_unprocessedincludes/
common.inc
Returns the unprocessed and unaltered version of a module's schema.
drupal_get_schema_versionsincludes/
install.inc
Returns an array of available schema versions for a module.
drupal_get_titleincludes/
bootstrap.inc
获取当前页面的标题,用来显示在页面或文档标题.
drupal_get_tokenincludes/
common.inc
Generate a token based on $value, the current user session and private key.
drupal_get_updatersincludes/
common.inc
Drupal Updater registry.
drupal_get_user_timezoneincludes/
bootstrap.inc
Return the time zone of the current user.
_drupal_get_last_callerincludes/
errors.inc
Gets the last caller from a backtrace.
喜欢这篇文章吗,不妨分享给朋友们吧!