t
- Versions
- 4.6 – 5
t($string, $args = 0)- 6
t($string, $args = array(),$langcode= NULL)- 7
t($string, array $args = array(), array $options = array())
Translate strings to the page language or a given language.
Human-readable text that will be displayed somewhere within a page should be run through the t() function.
Examples:
<?php
if (!$info || !$info['extension']) {
form_set_error('picture_upload', t('The uploaded file was not an image.'));
}
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Log in'),
);
?>Any text within t() can be extracted by translators and changed into the equivalent text in their native language.
Special variables called "placeholders" are used to signal dynamic information in a string which should not be translated. Placeholders can also be used for text that may change from time to time (such as link paths) to be changed without requiring updates to translations.
For example:
<?php
$output = t('There are currently %members and %visitors online.', array(
'%members' => format_plural($total_users, '1 user', '@count users'),
'%visitors' => format_plural($guests->count, '1 guest', '@count guests')));
?>There are three styles of placeholders:
- !variable, which indicates that the text should be inserted as-is. This is useful for inserting variables into things like e-mail.
<?php
$message[] = t("If you don't want to receive such e-mails, you can change your settings at !url.", array('!url' => url("user/$account->uid", array('absolute' => TRUE))));
?>- @variable, which indicates that the text should be run through check_plain, to escape HTML characters. Use this for any output that's displayed within a Drupal page.
<?php
drupal_set_title($title = t("@name's blog", array('@name' => $account->name)));
?>- %variable, which indicates that the string should be HTML escaped and highlighted with theme_placeholder() which shows up by default as <em>emphasized</em>.
<?php
$message = t('%name-from sent %name-to an e-mail.', array('%name-from' => $user->name, '%name-to' => $account->name));
?>When using t(), try to put entire sentences and strings in one t() call. This makes it easier for translators, as it provides context as to what each word refers to. HTML markup within translation strings is allowed, but should be avoided if possible. The exception are embedded links; link titles add a context for translators, so should be kept in the main string.
Here is an example of incorrect usage of t():
<?php
$output .= t('<p>Go to the @contact-page.</p>', array('@contact-page' => l(t('contact page'), 'contact')));
?>Here is an example of t() used correctly:
<?php
$output .= '<p>'. t('Go to the <a href="@contact-page">contact page</a>.', array('@contact-page' => url('contact'))) .'</p>';
?>Avoid escaping quotation marks wherever possible.
Incorrect:
<?php
$output .= t('Don\'t click me.');
?>Correct:
<?php
$output .= t("Don't click me.");
?>Because t() is designed for handling code-based strings, in almost all cases, the actual string and not a variable must be passed through t().
Extraction of translations is done based on the strings contained in t() calls. If a variable is passed through t(), the content of the variable cannot be extracted from the file for translation.
Incorrect:
<?php
$message = 'An error occurred.';
drupal_set_message(t($message), 'error');
$output .= t($message);
?>Correct:
<?php
$message = t('An error occurred.');
drupal_set_message($message, 'error');
$output .= $message;
?>The only case in which variables can be passed safely through t() is when code-based versions of the same strings will be passed through t() (or otherwise extracted) elsewhere.
In some cases, modules may include strings in code that can't use t() calls. For example, a module may use an external PHP application that produces strings that are loaded into variables in Drupal for output. In these cases, module authors may include a dummy file that passes the relevant strings through t(). This approach will allow the strings to be extracted.
Sample external (non-Drupal) code:
<?php
class Time {
public $yesterday = 'Yesterday';
public $today = 'Today';
public $tomorrow = 'Tomorrow';
}
?>Sample dummy file.
<?php
// Dummy function included in example.potx.inc.
function example_potx() {
$strings = array(
t('Yesterday'),
t('Today'),
t('Tomorrow'),
);
// No return value needed, since this is a dummy function.
}
?>Having passed strings through t() in a dummy function, it is then okay to pass variables through t().
Correct (if a dummy file was used):
<?php
$time = new Time();
$output .= t($time->today);
?>However tempting it is, custom data from user input or other non-code sources should not be passed through t(). Doing so leads to the following problems and errors:
- The t() system doesn't support updates to existing strings. When user data is updated, the next time it's passed through t() a new record is created instead of an update. The database bloats over time and any existing translations are orphaned with each update.
- The t() system assumes any data it receives is in English. User data may be in another language, producing translation errors.
- The "Built-in interface" text group in the locale system is used to produce translations for storage in .po files. When non-code strings are passed through t(), they are added to this text group, which is rendered inaccurate since it is a mix of actual interface strings and various user input strings of uncertain origin.
Incorrect:
<?php
$item = item_load();
$output .= check_plain(t($item['title']));
?>Instead, translation of these data can be done through the locale system, either directly or through helper functions provided by contributed modules.
See also
During installation, st() is used in place of t(). Code that may be called during installation or during normal operation should use the get_t() helper function.
See also
st()
@see get_t()
Parameters
$string A string containing the English string to translate.
$args An associative array of replacements to make after translation. Incidences of any key in this array are replaced with the corresponding value. Based on the first character of the key, the value is escaped and/or themed:
- !variable: inserted as is
- @variable: escape plain text to HTML (check_plain)
- %variable: escape text and theme as a placeholder for user-submitted content (check_plain + theme_placeholder)
$langcode Optional language code to translate to a language other than what is used to display the page.
Return value
The translated string.
▾ 693 functions call t()
- actions_synchronize in includes/actions.inc
- Synchronize actions that are provided by modules.
- aggregator_admin_remove_feed in modules/aggregator/aggregator.admin.inc
- aggregator_admin_settings in modules/aggregator/aggregator.admin.inc
- Form builder; Configure the aggregator system.
- aggregator_block in modules/aggregator/aggregator.module
- Implementation of hook_block().
- aggregator_categorize_items in modules/aggregator/aggregator.pages.inc
- Form builder; build the page list form.
- aggregator_categorize_items_submit in modules/aggregator/aggregator.pages.inc
- Process aggregator_categorize_items form submissions.
- aggregator_categorize_items_validate in modules/aggregator/aggregator.pages.inc
- Validate aggregator_categorize_items form submissions.
- aggregator_form_category in modules/aggregator/aggregator.admin.inc
- Form builder; Generate a form to add/edit/delete aggregator categories.
- aggregator_form_category_submit in modules/aggregator/aggregator.admin.inc
- Process aggregator_form_category form submissions.
- aggregator_form_category_validate in modules/aggregator/aggregator.admin.inc
- Validate aggregator_form_feed form submissions.
- aggregator_form_feed in modules/aggregator/aggregator.admin.inc
- Form builder; Generate a form to add/edit feed sources.
- aggregator_form_feed_submit in modules/aggregator/aggregator.admin.inc
- Process aggregator_form_feed form submissions.
- aggregator_form_feed_validate in modules/aggregator/aggregator.admin.inc
- Validate aggregator_form_feed form submissions.
- aggregator_help in modules/aggregator/aggregator.module
- Implementation of hook_help().
- aggregator_page_category in modules/aggregator/aggregator.pages.inc
- Menu callback; displays all the items aggregated in a particular category.
- aggregator_page_last in modules/aggregator/aggregator.pages.inc
- Menu callback; displays the most recent items gathered from any feed.
- aggregator_page_sources in modules/aggregator/aggregator.pages.inc
- Menu callback; displays all the feeds used by the aggregator.
- aggregator_parse_feed in modules/aggregator/aggregator.module
- Parse a feed and store its items.
- aggregator_refresh in modules/aggregator/aggregator.module
- Checks a news feed for new items.
- aggregator_remove in modules/aggregator/aggregator.module
- Removes all items from a feed.
- aggregator_view in modules/aggregator/aggregator.admin.inc
- Displays the aggregator administration page.
- batch_example_batch_2 in developer/examples/batch_example.module
- Batch 2 : load all nodes 5 by 5, 20 times (Multipart operation)
- block_add_block_form_submit in modules/block/block.admin.inc
- Save the new custom block.
- block_add_block_form_validate in modules/block/block.admin.inc
- block_admin_configure in modules/block/block.admin.inc
- Menu callback; displays the block configuration form.
- block_admin_configure_submit in modules/block/block.admin.inc
- block_admin_configure_validate in modules/block/block.admin.inc
- block_admin_display_form in modules/block/block.admin.inc
- Generate main blocks administration form.
- block_admin_display_form_submit in modules/block/block.admin.inc
- Process main blocks administration form submission.
- block_box_delete in modules/block/block.admin.inc
- Menu callback; confirm deletion of custom blocks.
- block_box_delete_submit in modules/block/block.admin.inc
- Deletion of custom blocks.
- block_box_form in modules/block/block.module
- Define the custom block form.
- block_example_block in developer/examples/block_example.module
- Implementation of hook_block().
- block_example_contents in developer/examples/block_example.module
- A block content function.
- block_help in modules/block/block.module
- Implementation of hook_help().
- block_user in modules/block/block.module
- Implementation of hook_user().
- blogapi_admin_settings in modules/blogapi/blogapi.module
- blogapi_blogger_edit_post in modules/blogapi/blogapi.module
- Blogging API callback. Modifies the specified blog node.
- blogapi_blogger_new_post in modules/blogapi/blogapi.module
- Blogging API callback. Inserts a new blog post as a node.
- blogapi_help in modules/blogapi/blogapi.module
- Implementation of hook_help().
- blogapi_init in modules/blogapi/blogapi.module
- blogapi_metaweblog_new_media_object in modules/blogapi/blogapi.module
- Blogging API callback. Inserts a file into Drupal.
- blogapi_mt_publish_post in modules/blogapi/blogapi.module
- Blogging API callback. Publishes the given node
- blogapi_mt_validate_terms in modules/blogapi/blogapi.module
- Blogging API helper - find allowed taxonomy terms for a node type.
- blogapi_status_error_check in modules/blogapi/blogapi.module
- Check that the user has permission to save the node with the chosen status.
- blogapi_validate_user in modules/blogapi/blogapi.module
- Ensure that the given user has permission to edit a blog.
- blogapi_xmlrpc in modules/blogapi/blogapi.module
- Implementation of hook_xmlrpc().
- blog_block in modules/blog/blog.module
- Implementation of hook_block().
- blog_feed_last in modules/blog/blog.pages.inc
- Menu callback; displays an RSS feed containing recent blog entries of all users.
- blog_feed_user in modules/blog/blog.pages.inc
- Menu callback; displays an RSS feed containing recent blog entries of a given user.
- blog_help in modules/blog/blog.module
- Implementation of hook_help().
- blog_link in modules/blog/blog.module
- Implementation of hook_link().
- blog_node_info in modules/blog/blog.module
- Implementation of hook_node_info().
- blog_page_last in modules/blog/blog.pages.inc
- Menu callback; displays a Drupal page containing recent blog entries of all users.
- blog_page_user in modules/blog/blog.pages.inc
- Menu callback; displays a Drupal page containing recent blog entries of a given user.
- blog_user in modules/blog/blog.module
- Implementation of hook_user().
- blog_view in modules/blog/blog.module
- Implementation of hook_view().
- book_admin_edit in modules/book/book.admin.inc
- Build the form to administrate the hierarchy of a single book.
- book_admin_edit_submit in modules/book/book.admin.inc
- Handle submission of the book administrative page form.
- book_admin_edit_validate in modules/book/book.admin.inc
- Check that the book has not been changed while using the form.
- book_admin_overview in modules/book/book.admin.inc
- Returns an administrative overview of all books.
- book_admin_settings in modules/book/book.admin.inc
- Builds and returns the book settings form.
- book_admin_settings_validate in modules/book/book.admin.inc
- Validate the book settings form.
- book_block in modules/book/book.module
- Implementation of hook_block().
- book_build_active_trail in modules/book/book.module
- Build an active trail to show in the breadcrumb.
- book_export in modules/book/book.pages.inc
- Menu callback; Generates various representation of a book page and its children.
- book_form_alter in modules/book/book.module
- Implementation of hook_form_alter(). Adds the book fieldset to the node form.
- book_form_node_delete_confirm_alter in modules/book/book.module
- Form altering function for the confirm form for a single node deletion.
- book_help in modules/book/book.module
- Implementation of hook_help().
- book_link in modules/book/book.module
- Implementation of hook_link().
- book_outline_form in modules/book/book.pages.inc
- Build the form to handle all book outline operations via the outline tab.
- book_outline_form_submit in modules/book/book.pages.inc
- Handles book outline form submissions from the outline tab.
- book_remove_form in modules/book/book.pages.inc
- Menu callback; builds a form to confirm removal of a node from the book.
- book_remove_form_submit in modules/book/book.pages.inc
- Confirm form submit function to remove a node from the book.
- chameleon_comment in themes/chameleon/chameleon.theme
- chameleon_node in themes/chameleon/chameleon.theme
- chameleon_page in themes/chameleon/chameleon.theme
- check_markup in modules/filter/filter.module
- Run all the enabled filters on a piece of text.
- color_form_alter in modules/color/color.module
- Implementation of hook_form_alter().
- color_help in modules/color/color.module
- Implementation of hook_help().
- color_requirements in modules/color/color.install
- color_scheme_form in modules/color/color.module
- Form callback. Returns the configuration form.
- color_scheme_form_submit in modules/color/color.module
- Submit handler for color change form.
- comment_action_info in modules/comment/comment.module
- Implementation of hook_action_info().
- comment_admin_overview in modules/comment/comment.admin.inc
- Form builder; Builds the comment overview form for the admin.
- comment_admin_overview_submit in modules/comment/comment.admin.inc
- Process comment_admin_overview form submissions.
- comment_admin_overview_validate in modules/comment/comment.admin.inc
- Validate comment_admin_overview form submissions.
- comment_block in modules/comment/comment.module
- Implementation of hook_block().
- comment_confirm_delete in modules/comment/comment.admin.inc
- Form builder; Builds the confirmation form for deleting a single comment.
- comment_confirm_delete_submit in modules/comment/comment.admin.inc
- Process comment_confirm_delete form submissions.
- comment_controls in modules/comment/comment.module
- Build a comment control form.
- comment_controls_submit in modules/comment/comment.module
- Process comment_controls form submissions.
- comment_delete in modules/comment/comment.admin.inc
- Menu callback; delete a comment.
- comment_form in modules/comment/comment.module
- Generate the basic commenting form, for appending to a node or display on a separate page.
- comment_form_add_preview in modules/comment/comment.module
- Form builder; Generate and validate a comment preview form.
- comment_form_alter in modules/comment/comment.module
- Implementation of hook_form_alter().
- comment_help in modules/comment/comment.module
- Implementation of hook_help().
- comment_hook_info in modules/comment/comment.module
- Implementation of hook_hook_info().
- comment_link in modules/comment/comment.module
- Implementation of hook_link().
- comment_links in modules/comment/comment.module
- Build command links for a comment (e.g.\ edit, reply, delete) with respect to the current user's access permissions.
- comment_multiple_delete_confirm in modules/comment/comment.admin.inc
- List the selected comments and verify that the admin really wants to delete them.
- comment_multiple_delete_confirm_submit in modules/comment/comment.admin.inc
- Process comment_multiple_delete_confirm form submissions.
- comment_operations in modules/comment/comment.module
- Comment operations. We offer different update operations depending on which comment administration page we're on.
- comment_render in modules/comment/comment.module
- Renders comment(s).
- comment_reply in modules/comment/comment.pages.inc
- This function is responsible for generating a comment reply form. There are several cases that have to be handled, including:
- comment_save in modules/comment/comment.module
- Accepts a submission of new or changed comment content.
- comment_unpublish_by_keyword_action_form in modules/comment/comment.module
- Form builder; Prepare a form for blacklisted keywords.
- comment_validate in modules/comment/comment.module
- Validate comment data.
- confirm_form in modules/system/system.module
- Output a confirmation form
- contact_admin_categories in modules/contact/contact.admin.inc
- Categories/list tab.
- contact_admin_delete in modules/contact/contact.admin.inc
- Category delete page.
- contact_admin_delete_submit in modules/contact/contact.admin.inc
- Process category delete form submission.
- contact_admin_edit in modules/contact/contact.admin.inc
- Category edit page.
- contact_admin_edit_submit in modules/contact/contact.admin.inc
- Process the contact category edit page form submission.
- contact_admin_edit_validate in modules/contact/contact.admin.inc
- Validate the contact category edit page form submission.
- contact_admin_settings in modules/contact/contact.admin.inc
- contact_help in modules/contact/contact.module
- Implementation of hook_help().
- contact_mail in modules/contact/contact.module
- Implementation of hook_mail().
- contact_mail_page in modules/contact/contact.pages.inc
- contact_mail_page_submit in modules/contact/contact.pages.inc
- Process the site-wide contact page form submission.
- contact_mail_page_validate in modules/contact/contact.pages.inc
- Validate the site-wide contact page form submission.
- contact_mail_user in modules/contact/contact.pages.inc
- contact_mail_user_submit in modules/contact/contact.pages.inc
- Process the personal contact page form submission.
- contact_site_page in modules/contact/contact.pages.inc
- Site-wide contact page.
- contact_user in modules/contact/contact.module
- Implementation of hook_user().
- contact_user_page in modules/contact/contact.pages.inc
- Personal contact page.
- date_validate in includes/form.inc
- Validates the date type to stop dates like February 30, 2006.
- dblog_admin_settings in modules/dblog/dblog.admin.inc
- dblog module settings form.
- dblog_event in modules/dblog/dblog.admin.inc
- Menu callback; displays details about a log message.
- dblog_filters in modules/dblog/dblog.admin.inc
- List dblog administration filters that can be applied.
- dblog_filter_form in modules/dblog/dblog.admin.inc
- Return form for dblog administration filters.
- dblog_filter_form_submit in modules/dblog/dblog.admin.inc
- Process result from dblog administration filter form.
- dblog_filter_form_validate in modules/dblog/dblog.admin.inc
- Validate result from dblog administration filter form.
- dblog_help in modules/dblog/dblog.module
- Implementation of hook_help().
- dblog_overview in modules/dblog/dblog.admin.inc
- Menu callback; displays a listing of log messages.
- dblog_top in modules/dblog/dblog.admin.inc
- Menu callback; generic function to display a page of the most frequent dblog events of a specified type.
- do_search in modules/search/search.module
- Do a query on the full-text search index for a word or words.
- drupal_access_denied in includes/common.inc
- Generates a 403 error if the request is not allowed.
- drupal_check_module in includes/install.inc
- Check a module's requirements.
- drupal_mail in includes/mail.inc
- Compose and optionally send an e-mail message.
- drupal_not_found in includes/common.inc
- Generates a 404 error if the request can not be handled.
- drupal_site_offline in includes/common.inc
- Generates a site off-line message.
- drupal_validate_form in includes/form.inc
- Validates user-submitted form data from the $form_state using the validate functions defined in a structured form array.
- example_element_demo_form in developer/examples/example_element.module
- This is a simple form to demonstrate how to use the phonenumber element we've defined.
- example_element_phonenumber_expand in developer/examples/example_element.module
- Our process callback to expand the control.
- example_element_phonenumber_validate in developer/examples/example_element.module
- Our element's validation function.
- expand_password_confirm in includes/form.inc
- Expand a password_confirm field into two text boxes.
- file_check_directory in includes/file.inc
- Check that the directory exists and is writable. Directories need to have execute permissions to be considered a directory by FTP servers, etc.
- file_copy in includes/file.inc
- Copies a file to a new location. This is a powerful function that in many ways performs like an advanced version of copy().
- file_destination in includes/file.inc
- Determines the destination path for a file depending on how replacement of existing files should be handled.
- file_move in includes/file.inc
- Moves a file to a new location.
- file_munge_filename in includes/file.inc
- Munge the filename as needed for security purposes. For instance the file name "exploit.php.pps" would become "exploit.php_.pps".
- file_save_data in includes/file.inc
- Save a string to the specified destination.
- file_save_upload in includes/file.inc
- Saves a file upload to a new location. The source file is validated as a proper upload and handled as such.
- file_validate_extensions in includes/file.inc
- Check that the filename ends with an allowed extension. This check is not enforced for the user #1.
- file_validate_image_resolution in includes/file.inc
- If the file is an image verify that its dimensions are within the specified maximum and minimum dimensions. Non-image files will be ignored.
- file_validate_is_image in includes/file.inc
- Check that the file is recognized by image_get_info() as an image.
- file_validate_name_length in includes/file.inc
- Check for files with names longer than we can store in the database.
- file_validate_size in includes/file.inc
- Check that the file's size is below certain limits. This check is not enforced for the user #1.
- filter_admin_configure in modules/filter/filter.admin.inc
- Build a form to change the settings for a format's filters.
- filter_admin_configure_page in modules/filter/filter.admin.inc
- Menu callback; display settings defined by a format's filters.
- filter_admin_delete in modules/filter/filter.admin.inc
- Menu callback; confirm deletion of a format.
- filter_admin_delete_submit in modules/filter/filter.admin.inc
- Process filter delete form submission.
- filter_admin_format_form in modules/filter/filter.admin.inc
- Generate a filter format form.
- filter_admin_format_form_submit in modules/filter/filter.admin.inc
- Process filter format form submissions.
- filter_admin_format_form_validate in modules/filter/filter.admin.inc
- Validate filter format form submissions.
- filter_admin_format_page in modules/filter/filter.admin.inc
- Menu callback; Display a filter format form.
- filter_admin_order in modules/filter/filter.admin.inc
- Build the form for ordering filters for a format.
- filter_admin_order_page in modules/filter/filter.admin.inc
- Menu callback; display form for ordering filters for a format.
- filter_admin_order_submit in modules/filter/filter.admin.inc
- Process filter order configuration form submission.
- filter_admin_overview in modules/filter/filter.admin.inc
- Menu callback; Displays a list of all input formats and which one is the default.
- filter_admin_overview_submit in modules/filter/filter.admin.inc
- filter_example_filter in developer/examples/filter_example.module
- Implementation of hook_filter().
- filter_example_filter_tips in developer/examples/filter_example.module
- Implementation of hook_filter_tips().
- filter_filter in modules/filter/filter.module
- Implementation of hook_filter(). Contains a basic set of essential filters.
- filter_filter_tips in modules/filter/filter.module
- Implementation of hook_filter_tips().
- filter_form in modules/filter/filter.module
- Generate a selector for choosing a format in a form.
- filter_form_validate in modules/filter/filter.module
- filter_help in modules/filter/filter.module
- Implementation of hook_help().
- format_date in includes/common.inc
- Format a date with the given configured format or a custom format string.
- format_interval in includes/common.inc
- Format a time interval with the requested granularity.
- format_plural in includes/common.inc
- Format a string containing a count of items.
- format_size in includes/common.inc
- Generate a string representation for the given byte count.
- forum_admin_settings in modules/forum/forum.admin.inc
- Form builder for the forum settings page.
- forum_block in modules/forum/forum.module
- Implementation of hook_block().
- forum_confirm_delete in modules/forum/forum.admin.inc
- Returns a confirmation page for deleting a forum taxonomy term.
- forum_confirm_delete_submit in modules/forum/forum.admin.inc
- Implementation of forms api _submit call. Deletes a forum after confirmation.
- forum_enable in modules/forum/forum.install
- forum_form in modules/forum/forum.module
- Implementation of hook_form().
- forum_form_alter in modules/forum/forum.module
- Implementation of hook_form_alter().
- forum_form_container in modules/forum/forum.admin.inc
- Returns a form for adding a container to the forum vocabulary
- forum_form_forum in modules/forum/forum.admin.inc
- Returns a form for adding a forum to the forum vocabulary
- forum_form_main in modules/forum/forum.admin.inc
- forum_form_submit in modules/forum/forum.admin.inc
- Process forum form and container form submissions.
- forum_get_topics in modules/forum/forum.module
- forum_help in modules/forum/forum.module
- Implementation of hook_help().
- forum_nodeapi in modules/forum/forum.module
- Implementation of hook_nodeapi().
- forum_node_info in modules/forum/forum.module
- Implementation of hook_node_info().
- forum_overview in modules/forum/forum.admin.inc
- Returns an overview list of existing forums and containers
- forum_update_6000 in modules/forum/forum.install
- Create the forum vocabulary if does not exist. Assign the vocabulary a low weight so it will appear first in forum topic create and edit forms. Do not just call forum_enable() because in future versions it might do something different.
- garland_preprocess_comment_wrapper in themes/garland/template.php
- Add a "Comments" heading above comments except on forum pages.
- help_help in modules/help/help.module
- Implementation of hook_help().
- help_main in modules/help/help.admin.inc
- Menu callback; prints a page listing a glossary of Drupal terminology.
- help_page in modules/help/help.admin.inc
- Menu callback; prints a page listing general help for a module.
- hook_action_info in developer/hooks/core.php
- Declare information about one or more Drupal actions.
- hook_action_info_alter in developer/hooks/core.php
- Alter the actions declared by another module.
- hook_block in developer/hooks/core.php
- Declare a block or set of blocks.
- hook_filter in developer/hooks/core.php
- Define content filters.
- hook_filter_tips in developer/hooks/core.php
- Provide tips for using filters.
- hook_form in developer/hooks/node.php
- Display a node editing form.
- hook_form_alter in developer/hooks/core.php
- Perform alterations before a form is rendered.
- hook_form_FORM_ID_alter in developer/hooks/core.php
- Provide a form-specific alteration instead of the global hook_form_alter().
- hook_help in developer/hooks/core.php
- Provide online user help.
- hook_hook_info in developer/hooks/core.php
- Expose a list of triggers (events) that users can assign actions to.
- hook_link in developer/hooks/core.php
- Define internal Drupal links.
- hook_locale in developer/hooks/core.php
- Allows modules to define their own text groups that can be translated.
- hook_mail_alter in developer/hooks/core.php
- Alter any aspect of email sent by Drupal. You can use this hook to add a common site footer to all outgoing email, add extra header fields, and/or modify the email in any way. HTML-izing the outgoing email is one possibility. See also drupal_mail().
- hook_nodeapi in developer/hooks/core.php
- Act on nodes defined by other modules.
- hook_node_info in developer/hooks/node.php
- Define module-provided node types.
- hook_node_operations in developer/hooks/core.php
- Add mass node operations.
- hook_prepare in developer/hooks/node.php
- This is a hook used by node modules. It is called after load but before the node is shown on the add/edit form.
- hook_requirements in developer/hooks/install.php
- Check installation requirements and do status reporting.
- hook_search in developer/hooks/core.php
- Define a custom search routine.
- hook_update_status_alter in developer/hooks/core.php
- Alter the information about available updates for projects.
- hook_user in developer/hooks/core.php
- Act on user account actions.
- hook_user_operations in developer/hooks/core.php
- Add mass user operations.
- hook_validate in developer/hooks/node.php
- Verify a node editing form.
- hook_view in developer/hooks/node.php
- Display a node.
- hook_watchdog in developer/hooks/core.php
- Log an event message
- hook_xmlrpc in developer/hooks/core.php
- Register XML-RPC callbacks.
- image_gd_info in includes/image.gd.inc
- Retrieve information about the toolkit.
- image_gd_settings in includes/image.gd.inc
- Retrieve settings for the GD2 toolkit.
- image_gd_settings_validate in includes/image.gd.inc
- Validate the submitted GD settings.
- locale_block in modules/locale/locale.module
- Implementation of hook_block(). Displays a language switcher. Translation links may be provided by other modules.
- locale_form_alter in modules/locale/locale.module
- Implementation of hook_form_alter(). Adds language fields to forms.
- locale_help in modules/locale/locale.module
- Implementation of hook_help().
- locale_languages_configure_form in includes/locale.inc
- Setting for language negotiation options
- locale_languages_configure_form_submit in includes/locale.inc
- Submit function for language negotiation settings.
- locale_languages_custom_form in includes/locale.inc
- Custom language addition form.
- locale_languages_delete_form in includes/locale.inc
- User interface for the language deletion confirmation screen.
- locale_languages_delete_form_submit in includes/locale.inc
- Process language deletion submissions.
- locale_languages_edit_form in includes/locale.inc
- Editing screen for a particular language.
- locale_languages_edit_form_validate in includes/locale.inc
- Validate the language editing form. Reused for custom language addition too.
- locale_languages_overview_form in includes/locale.inc
- User interface for the language overview screen.
- locale_languages_overview_form_submit in includes/locale.inc
- Process language overview form submissions, updating existing languages.
- locale_languages_predefined_form in includes/locale.inc
- Predefined language setup form.
- locale_languages_predefined_form_submit in includes/locale.inc
- Process the language addition form submission.
- locale_languages_predefined_form_validate in includes/locale.inc
- Validate the language addition form.
- locale_language_list in modules/locale/locale.module
- Returns array of language names
- locale_language_name in modules/locale/locale.module
- Returns a language name
- locale_locale in modules/locale/locale.module
- Implementation of hook_locale().
- locale_translate_delete_form in includes/locale.inc
- User interface for the string deletion confirmation screen.
- locale_translate_delete_form_submit in includes/locale.inc
- Process string deletion submissions.
- locale_translate_edit_form in includes/locale.inc
- User interface for string editing.
- locale_translate_edit_form_submit in includes/locale.inc
- Process string editing form submissions.
- locale_translate_edit_form_validate in includes/locale.inc
- Validate string editing form submissions.
- locale_translate_export_pot_form in includes/locale.inc
- Translation template export form.
- locale_translate_export_po_form in includes/locale.inc
- Form to export PO files for the languages provided.
- locale_translate_import_form in includes/locale.inc
- User interface for the translation import screen.
- locale_translate_import_form_submit in includes/locale.inc
- Process the locale import form submission.
- locale_translate_overview_screen in includes/locale.inc
- Overview screen for translations.
- locale_translate_seek_form in includes/locale.inc
- User interface for the string search screen.
- locale_user in modules/locale/locale.module
- Implementation of hook_user().
- menu_configure in modules/menu/menu.admin.inc
- Menu callback; Build the form presenting menu configuration options.
- menu_delete_menu_confirm in modules/menu/menu.admin.inc
- Build a confirm form for deletion of a custom menu.
- menu_delete_menu_confirm_submit in modules/menu/menu.admin.inc
- Delete a custom menu and all items in it.
- menu_edit_item in modules/menu/menu.admin.inc
- Menu callback; Build the menu link editing form.
- menu_edit_item_submit in modules/menu/menu.admin.inc
- Process menu and menu item add/edit form submissions.
- menu_edit_item_validate in modules/menu/menu.admin.inc
- Validate form values for a menu link being added or edited.
- menu_edit_menu in modules/menu/menu.admin.inc
- Menu callback; Build the form that handles the adding/editing of a custom menu.
- menu_edit_menu_validate in modules/menu/menu.admin.inc
- Validates the human and machine-readable names when adding or editing a menu.
- menu_form_alter in modules/menu/menu.module
- Implementation of hook_form_alter(). Adds menu item fields to the node form.
- menu_help in modules/menu/menu.module
- Implementation of hook_help().
- menu_item_delete_form in modules/menu/menu.admin.inc
- Build a confirm form for deletion of a single menu link.
- menu_item_delete_form_submit in modules/menu/menu.admin.inc
- Process menu delete form submissions.
- menu_nodeapi in modules/menu/menu.module
- Implementation of hook_nodeapi().
- menu_overview_form in modules/menu/menu.admin.inc
- Form for editing an entire menu tree at once.
- menu_reset_item_confirm in modules/menu/menu.admin.inc
- Menu callback; reset a single modified item.
- menu_reset_item_confirm_submit in modules/menu/menu.admin.inc
- Process menu reset item form submissions.
- menu_set_active_trail in includes/menu.inc
- Sets or gets the active trail (path to root menu root) of the current page.
- multipage_form_example_custom_validate in developer/examples/multipage_form_example.module
- Validate our form.
- multipage_form_example_form in developer/examples/multipage_form_example.module
- Implementation of hook_form() for multipage_form_example. We don't set ANY #required attributes here - we leave that up to multipage_form_example_pre_render().
- multipage_form_example_form_alter in developer/examples/multipage_form_example.module
- Implementation of hook_form_alter(). Here, we set up the 'page' field, which keeps track of what stage the form is in.
- multipage_form_example_help in developer/examples/multipage_form_example.module
- Implementation of hook_help().
- multipage_form_example_menu in developer/examples/multipage_form_example.module
- Implementation of hook_menu().
- multipage_form_example_node_info in developer/examples/multipage_form_example.module
- Implementation of hook_node_info().
- multipage_form_example_pre_render in developer/examples/multipage_form_example.module
- The #pre_render of a form allows us to make changes AFTER validation (unlike hook_form_alter()), but BEFORE the form has actually been displayed. We use it to control which form elements are shown, which are hidden, and which values to set based on...
- nodeapi_example_form_alter in developer/examples/nodeapi_example.module
- Implementation of hook_form_alter().
- nodeapi_example_nodeapi in developer/examples/nodeapi_example.module
- Implementation of hook_nodeapi().
- node_access_example_form_alter in developer/examples/node_access_example.module
- Implementation of hook_form_alter()
- node_access_rebuild in modules/node/node.module
- Rebuild the node access database. This is occasionally needed by modules that make system-wide changes to access levels.
- node_action_info in modules/node/node.module
- Implementation of hook_action_info().
- node_add in modules/node/node.pages.inc
- Present a node submission form or a set of links to such forms.
- node_admin_nodes in modules/node/node.admin.inc
- Form builder: Builds the node administration overview.
- node_admin_nodes_validate in modules/node/node.admin.inc
- Validate node_admin_nodes form submissions.
- node_assign_owner_action_form in modules/node/node.module
- node_assign_owner_action_validate in modules/node/node.module
- node_block in modules/node/node.module
- Implementation of hook_block().
- node_body_field in modules/node/node.pages.inc
- Return a node body field, with format and teaser.
- node_configure in modules/node/node.admin.inc
- Menu callback; presents general node configuration options.
- node_configure_rebuild_confirm in modules/node/node.admin.inc
- Menu callback: confirm rebuilding of permissions.
- node_delete in modules/node/node.module
- Delete a node.
- node_delete_confirm in modules/node/node.pages.inc
- Menu callback -- ask for confirmation of node deletion
- node_example_form in developer/examples/node_example.module
- Implementation of hook_form().
- node_example_node_info in developer/examples/node_example.module
- Implementation of hook_node_info(). This function replaces hook_node_name() and hook_node_types() from 4.6. Drupal 5 expands this hook significantly.
- node_example_validate in developer/examples/node_example.module
- Implementation of hook_validate().
- node_feed in modules/node/node.module
- A generic function for generating RSS feeds from a set of nodes.
- node_filters in modules/node/node.admin.inc
- List node administration filters that can be applied.
- node_filter_form in modules/node/node.admin.inc
- Return form for node administration filters.
- node_filter_form_submit in modules/node/node.admin.inc
- Process result from node administration filter form.
- node_form in modules/node/node.pages.inc
- Generate the node add/edit form array.
- node_form_alter in modules/node/node.module
- Implementation of hook_form_alter().
- node_form_submit in modules/node/node.pages.inc
- node_help in modules/node/node.module
- Implementation of hook_help().
- node_hook_info in modules/node/node.module
- Implementation of hook_hook_info().
- node_link in modules/node/node.module
- Implementation of hook_link().
- node_mass_update in modules/node/node.admin.inc
- Make mass update of nodes, changing all nodes in the $nodes array to update them with the field values in $updates.
- node_multiple_delete_confirm in modules/node/node.admin.inc
- node_multiple_delete_confirm_submit in modules/node/node.admin.inc
- node_node_operations in modules/node/node.admin.inc
- Implementation of hook_node_operations().
- node_overview_types in modules/node/content_types.inc
- Displays the content type admin overview page.
- node_page_default in modules/node/node.module
- Menu callback; Generate a listing of promoted nodes.
- node_preview in modules/node/node.pages.inc
- Generate a node preview.
- node_revision_delete_confirm in modules/node/node.pages.inc
- node_revision_delete_confirm_submit in modules/node/node.pages.inc
- node_revision_overview in modules/node/node.pages.inc
- Generate an overview table of older revisions of a node.
- node_revision_revert_confirm in modules/node/node.pages.inc
- Ask for confirmation of the reversion to prevent against CSRF attacks.
- node_revision_revert_confirm_submit in modules/node/node.pages.inc
- node_search in modules/node/node.module
- Implementation of hook_search().
- node_show in modules/node/node.module
- Generate a page displaying a single node, along with its comments.
- node_teaser_include_verify in modules/node/node.module
- Ensure value of "teaser_include" checkbox is consistent with other form data.
- node_type_delete_confirm in modules/node/content_types.inc
- Menu callback; delete a single content type.
- node_type_delete_confirm_submit in modules/node/content_types.inc
- Process content type delete confirm submissions.
- node_type_form in modules/node/content_types.inc
- Generates the node type editing form.
- node_type_form_submit in modules/node/content_types.inc
- Implementation of hook_form_submit().
- node_type_form_validate in modules/node/content_types.inc
- Validates the content type submission form generated by node_type_form().
- node_unpublish_by_keyword_action_form in modules/node/node.module
- node_validate in modules/node/node.module
- Perform validation checks on the given node.
- openid_authentication in modules/openid/openid.module
- Authenticate a user or attempt registration.
- openid_authentication_page in modules/openid/openid.pages.inc
- Menu callback; Process an OpenID authentication.
- openid_begin in modules/openid/openid.module
- The initial step of OpenID authentication responsible for the following:
- openid_form_alter in modules/openid/openid.module
- Implementation of hook_form_alter : adds OpenID login to the login forms.
- openid_help in modules/openid/openid.module
- Implementation of hook_help().
- openid_redirect in modules/openid/openid.inc
- Creates a js auto-submit redirect for (for the 2.x protocol)
- openid_redirect_form in modules/openid/openid.inc
- openid_user in modules/openid/openid.module
- Implementation of hook_user().
- openid_user_add in modules/openid/openid.pages.inc
- Form builder; Add an OpenID identity.
- openid_user_add_validate in modules/openid/openid.pages.inc
- openid_user_delete_form in modules/openid/openid.pages.inc
- Present a confirmation form to delete the specified OpenID identity from the system.
- openid_user_delete_form_submit in modules/openid/openid.pages.inc
- openid_user_identities in modules/openid/openid.pages.inc
- Menu callback; Manage OpenID identities for the specified user.
- page_example_baz in developer/examples/page_example.module
- A more complex page callback that takes arguments.
- page_example_foo in developer/examples/page_example.module
- A simple page callback.
- page_example_help in developer/examples/page_example.module
- Implementation of hook_help().
- password_confirm_validate in includes/form.inc
- Validate password_confirm element.
- path_admin_delete in modules/path/path.module
- Post-confirmation; delete an URL alias.
- path_admin_delete_confirm in modules/path/path.admin.inc
- Menu callback; confirms deleting an URL alias
- path_admin_filter_form in modules/path/path.admin.inc
- Return a form to filter URL aliases.
- path_admin_form in modules/path/path.admin.inc
- Return a form for editing or creating an individual URL alias.
- path_admin_form_submit in modules/path/path.admin.inc
- Save a new URL alias to the database.
- path_admin_form_validate in modules/path/path.admin.inc
- Verify that a new URL alias is valid
- path_admin_overview in modules/path/path.admin.inc
- Return a listing of all defined URL aliases. When filter key passed, perform a standard search on the given key, and return the list of matching URL aliases.
- path_form_alter in modules/path/path.module
- Implementation of hook_form_alter().
- path_help in modules/path/path.module
- Implementation of hook_help().
- path_nodeapi in modules/path/path.module
- Implementation of hook_nodeapi().
- phptemplate_comment_submitted in themes/garland/template.php
- phptemplate_node_submitted in themes/garland/template.php
- php_disable in modules/php/php.install
- Implementation of hook_disable().
- php_filter in modules/php/php.module
- Implementation of hook_filter(). Contains a basic PHP evaluator.
- php_filter_tips in modules/php/php.module
- Implementation of hook_filter_tips().
- php_help in modules/php/php.module
- Implementation of hook_help().
- php_install in modules/php/php.install
- Implementation of hook_install().
- ping_help in modules/ping/ping.module
- Implementation of hook_help().
- poll_block in modules/poll/poll.module
- Implementation of hook_block().
- poll_cancel_form in modules/poll/poll.module
- Builds the cancel form for a poll.
- poll_form in modules/poll/poll.module
- Implementation of hook_form().
- poll_help in modules/poll/poll.module
- Implementation of hook_help().
- poll_node_info in modules/poll/poll.module
- Implementation of hook_node_info().
- poll_page in modules/poll/poll.pages.inc
- Menu callback to provide a simple list of all polls available.
- poll_validate in modules/poll/poll.module
- Implementation of hook_validate().
- poll_view in modules/poll/poll.module
- Implementation of hook_view().
- poll_view_voting in modules/poll/poll.module
- Generates the voting form for a poll.
- poll_view_voting_validate in modules/poll/poll.module
- Validation function for processing votes
- poll_vote in modules/poll/poll.module
- Submit handler for processing a vote
- poll_votes in modules/poll/poll.pages.inc
- Callback for the 'votes' tab for polls you can see other votes on
- profile_admin_overview in modules/profile/profile.admin.inc
- Form builder to display a listing of all editable profile fields.
- profile_admin_overview_submit in modules/profile/profile.admin.inc
- Submit handler to update changed profile field weights and categories.
- profile_block in modules/profile/profile.module
- Implementation of hook_block().
- profile_browse in modules/profile/profile.pages.inc
- Menu callback; display a list of user information.
- profile_field_delete in modules/profile/profile.admin.inc
- Menu callback; deletes a field from all user profiles.
- profile_field_delete_submit in modules/profile/profile.admin.inc
- Process a field delete form submission.
- profile_field_form in modules/profile/profile.admin.inc
- Menu callback: Generate a form to add/edit a user profile field.
- profile_field_form_submit in modules/profile/profile.admin.inc
- Process profile_field_form submissions.
- profile_field_form_validate in modules/profile/profile.admin.inc
- Validate profile_field_form submissions.
- profile_help in modules/profile/profile.module
- Implementation of hook_help().
- profile_validate_profile in modules/profile/profile.module
- search_admin_settings in modules/search/search.admin.inc
- Menu callback; displays the search module settings page.
- search_admin_settings_validate in modules/search/search.admin.inc
- Validate callback.
- search_block in modules/search/search.module
- Implementation of hook_block().
- search_box in modules/search/search.module
- Form builder; Output a search form for the search block and the theme's search box.
- search_form in modules/search/search.module
- Render a search form.
- search_form_submit in modules/search/search.pages.inc
- Process a search form submission.
- search_help in modules/search/search.module
- Implementation of hook_help().
- search_view in modules/search/search.pages.inc
- Menu callback; presents the search form and/or search results.
- search_wipe_confirm in modules/search/search.admin.inc
- Menu callback: confirm wiping of the index.
- search_wipe_confirm_submit in modules/search/search.admin.inc
- Handler for wipe confirmation
- statistics_access_log in modules/statistics/statistics.admin.inc
- Menu callback; Displays recent page accesses.
- statistics_access_logging_settings in modules/statistics/statistics.admin.inc
- Form builder; Configure access logging.
- statistics_block in modules/statistics/statistics.module
- Implementation of hook_block().
- statistics_help in modules/statistics/statistics.module
- Implementation of hook_help().
- statistics_node_tracker in modules/statistics/statistics.pages.inc
- statistics_recent_hits in modules/statistics/statistics.admin.inc
- Menu callback; presents the "recent hits" page.
- statistics_top_pages in modules/statistics/statistics.admin.inc
- Menu callback; presents the "top pages" page.
- statistics_top_referrers in modules/statistics/statistics.admin.inc
- Menu callback; presents the "referrer" page.
- statistics_top_visitors in modules/statistics/statistics.admin.inc
- Menu callback; presents the "top visitors" page.
- statistics_user_tracker in modules/statistics/statistics.pages.inc
- syslog_admin_settings in modules/syslog/syslog.module
- syslog_facility_list in modules/syslog/syslog.module
- syslog_help in modules/syslog/syslog.module
- Implementation of hook_help().
- system_actions_configure in modules/system/system.module
- Menu callback. Create the form for configuration of a single action.
- system_actions_configure_submit in modules/system/system.module
- Process system_actions_configure form submissions.
- system_actions_delete_form in modules/system/system.module
- Create the form for confirmation of deleting an action.
- system_actions_delete_form_submit in modules/system/system.module
- Process system_actions_delete form submissions.
- system_actions_manage in modules/system/system.module
- Menu callback. Display an overview of available and configured actions.
- system_actions_manage_form in modules/system/system.module
- Define the form for the actions overview page.
- system_action_delete_orphans_post in modules/system/system.module
- Post-deletion operations for deleting action orphans.
- system_action_info in modules/system/system.module
- Implementation of hook_action_info().
- system_admin_by_module in modules/system/system.admin.inc
- Menu callback; prints a listing of admin tasks for each installed module.
- system_admin_menu_block_page in modules/system/system.admin.inc
- Provide a single block from the administration menu as a page. This function is often a destination for these blocks. For example, 'admin/content/types' needs to have a destination to be valid in the Drupal menu system, but too much...
- system_admin_theme_settings in modules/system/system.admin.inc
- Form builder; This function allows selection of the theme to show in administration sections.
- system_block in modules/system/system.module
- Implementation of hook_block().
- system_clean_url_settings in modules/system/system.admin.inc
- Form builder; Configure Clean URL settings.
- system_clear_cache_submit in modules/system/system.admin.inc
- Submit callback; clear system caches.
- system_date_time_settings in modules/system/system.admin.inc
- Form builder; Configure the site date and time settings.
- system_error_reporting_settings in modules/system/system.admin.inc
- Form builder; Configure error reporting settings.
- system_file_system_settings in modules/system/system.admin.inc
- Form builder; Configure the site file handling.
- system_get_module_admin_tasks in modules/system/system.module
- Generate a list of tasks offered by a specified module.
- system_goto_action_form in modules/system/system.module
- Implementation of a configurable Drupal action. Redirect user to a URL.
- system_help in modules/system/system.module
- Implementation of hook_help().
- system_hook_info in modules/system/system.module
- Implementation of hook_hook_info().
- system_image_toolkit_settings in modules/system/system.admin.inc
- Form builder; Configure site image toolkit usage.
- system_main_admin_page in modules/system/system.admin.inc
- Menu callback; Provide the administration overview page.
- system_message_action in modules/system/system.module
- A configurable Drupal action. Sends a message to the current user's screen.
- system_message_action_form in modules/system/system.module
- system_modules in modules/system/system.admin.inc
- Menu callback; provides module enable/disable interface.
- system_modules_confirm_form in modules/system/system.admin.inc
- Display confirmation form for dependencies.
- system_modules_submit in modules/system/system.admin.inc
- Submit callback; handles modules form submission.
- system_modules_uninstall in modules/system/system.admin.inc
- Builds a form of currently disabled modules.
- system_modules_uninstall_confirm_form in modules/system/system.admin.inc
- Confirm uninstall of selected modules.
- system_modules_uninstall_submit in modules/system/system.admin.inc
- Processes the submitted uninstall form.
- system_modules_uninstall_validate in modules/system/system.admin.inc
- Validates the submitted uninstall form.
- system_performance_settings in modules/system/system.admin.inc
- Form builder; Configure site performance settings.
- system_requirements in modules/system/system.install
- Test and report Drupal installation requirements.
- system_rss_feeds_settings in modules/system/system.admin.inc
- Form builder; Configure how the site handles RSS feeds.
- system_run_cron in modules/system/system.admin.inc
- Menu callback: run cron manually.
- system_schema in modules/system/system.install
- Implementation of hook_schema().
- system_send_email_action_form in modules/system/system.module
- Return a form definition so the Send email action can be configured.
- system_send_email_action_validate in modules/system/system.module
- Validate system_send_email_action form submissions.
- system_settings_form in modules/system/system.module
- Add default buttons to a form and set its prefix.
- system_settings_form_submit in modules/system/system.module
- Execute the system_settings_form.
- system_site_information_settings in modules/system/system.admin.inc
- Form builder; The general site information form.
- system_site_information_settings_validate in modules/system/system.admin.inc
- Validate the submitted site-information form.
- system_site_maintenance_settings in modules/system/system.admin.inc
- Form builder; Configure the site's maintenance status.
- system_sql in modules/system/system.admin.inc
- Menu callback: return information about the database.
- system_themes_form in modules/system/system.admin.inc
- Menu callback; displays a listing of all themes.
- system_themes_form_submit in modules/system/system.admin.inc
- Process system_themes_form form submissions.
- system_theme_select_form in modules/system/system.module
- Returns a fieldset containing the theme select form.
- system_theme_settings in modules/system/system.admin.inc
- Form builder; display theme configuration for entire site and individual themes.
- system_theme_settings_submit in modules/system/system.admin.inc
- Process system_theme_settings form submissions.
- system_user in modules/system/system.module
- Implementation of hook_user().
- tablesort_header in includes/tablesort.inc
- Format a column header.
- taxonomy_add_term_page in modules/taxonomy/taxonomy.admin.inc
- Menu callback; return the edit form for a new term after setting the title.
- taxonomy_admin_vocabulary_edit in modules/taxonomy/taxonomy.admin.inc
- Page to edit a vocabulary.
- taxonomy_form in modules/taxonomy/taxonomy.module
- Generate a form element for selecting terms from a vocabulary.
- taxonomy_form_alter in modules/taxonomy/taxonomy.module
- Implementation of hook_form_alter(). Generate a form for selecting terms to associate with a node. We check for taxonomy_override_selector before loading the full vocabulary, so contrib modules can intercept before hook_form_alter and provide scalable...
- taxonomy_form_term in modules/taxonomy/taxonomy.admin.inc
- Form function for the term edit form.
- taxonomy_form_term_submit in modules/taxonomy/taxonomy.admin.inc
- Submit handler to insert or update a term.
- taxonomy_form_term_validate in modules/taxonomy/taxonomy.admin.inc
- Validation handler for the term edit form. Ensure numeric weight values.
- taxonomy_form_vocabulary in modules/taxonomy/taxonomy.admin.inc
- Display form for adding and editing vocabularies.
- taxonomy_form_vocabulary_submit in modules/taxonomy/taxonomy.admin.inc
- Accept the form submission for a vocabulary and save the results.
- taxonomy_help in modules/taxonomy/taxonomy.module
- Implementation of hook_help().
- taxonomy_hook_info in modules/taxonomy/taxonomy.module
- Implementation of hook_hook_info().
- taxonomy_node_validate in modules/taxonomy/taxonomy.module
- Make sure incoming vids are free tagging enabled.
- taxonomy_overview_terms in modules/taxonomy/taxonomy.admin.inc
- Form builder for the taxonomy terms overview.
- taxonomy_overview_terms_submit in modules/taxonomy/taxonomy.admin.inc
- Submit handler for terms overview form.
- taxonomy_overview_vocabularies in modules/taxonomy/taxonomy.admin.inc
- Form builder to list and manage vocabularies.
- taxonomy_render_nodes in modules/taxonomy/taxonomy.module
- Accepts the result of a pager_query() call, such as that performed by taxonomy_select_nodes(), and formats each node along with a pager.
- taxonomy_term_confirm_delete in modules/taxonomy/taxonomy.admin.inc
- Form builder for the term delete form.
- taxonomy_term_confirm_delete_submit in modules/taxonomy/taxonomy.admin.inc
- Submit handler to delete a term after confirmation.
- taxonomy_term_confirm_parents in modules/taxonomy/taxonomy.admin.inc
- Form builder for the confirmation of multiple term parents.
- taxonomy_term_page in modules/taxonomy/taxonomy.pages.inc
- Menu callback; displays all nodes associated with a term.
- taxonomy_vocabulary_confirm_delete in modules/taxonomy/taxonomy.admin.inc
- Form builder for the vocabulary delete confirmation form.
- taxonomy_vocabulary_confirm_delete_submit in modules/taxonomy/taxonomy.admin.inc
- Submit handler to delete a vocabulary after confirmation.
- taxonomy_vocabulary_confirm_reset_alphabetical in modules/taxonomy/taxonomy.admin.inc
- Form builder to confirm reseting a vocabulary to alphabetical order.
- taxonomy_vocabulary_confirm_reset_alphabetical_submit in modules/taxonomy/taxonomy.admin.inc
- Submit handler to reset a vocabulary to alphabetical order after confirmation.
- template_preprocess_aggregator_feed_source in modules/aggregator/aggregator.pages.inc
- Process variables for aggregator-feed-source.tpl.php.
- template_preprocess_aggregator_item in modules/aggregator/aggregator.pages.inc
- Process variables for aggregator-item.tpl.php.
- template_preprocess_aggregator_summary_item in modules/aggregator/aggregator.pages.inc
- Process variables for aggregator-summary-item.tpl.php.
- template_preprocess_block_admin_display_form in modules/block/block.admin.inc
- Process variables for block-admin-display.tpl.php.
- template_preprocess_comment in modules/comment/comment.module
- Process variables for comment.tpl.php.
- template_preprocess_comment_folded in modules/comment/comment.module
- Process variables for comment-folded.tpl.php.
- template_preprocess_forums in modules/forum/forum.module
- Process variables for forums.tpl.php
- template_preprocess_forum_topic_list in modules/forum/forum.module
- Preprocess variables to format the topic listing.
- template_preprocess_user_picture in modules/user/user.module
- Process variables for user-picture.tpl.php.
- theme_admin_page in modules/system/system.admin.inc
- This function formats an administrative page for viewing.
- theme_aggregator_block_item in modules/aggregator/aggregator.module
- Format an individual feed item for display in the block.
- theme_aggregator_categorize_items in modules/aggregator/aggregator.pages.inc
- Theme the page list form for assigning categories.
- theme_aggregator_page_rss in modules/aggregator/aggregator.pages.inc
- Theme the RSS output.
- theme_book_admin_table in modules/book/book.admin.inc
- Theme function for the book administration page form.
- theme_color_scheme_form in modules/color/color.module
- Theme color form.
- theme_comment_admin_overview in modules/comment/comment.admin.inc
- Theme the comment admin form.
- theme_comment_block in modules/comment/comment.module
- Returns a formatted list of recent comments to be displayed in the comment block.
- theme_comment_controls in modules/comment/comment.module
- Theme comment controls box where the user can change the default display mode and display order of comments.
- theme_comment_post_forbidden in modules/comment/comment.module
- Theme a "you can't post comments" notice.
- theme_comment_submitted in modules/comment/comment.module
- Theme a "Submitted by ..." notice.
- theme_feed_icon in includes/theme.inc
- Return code that emits an feed icon.
- theme_filter_admin_order in modules/filter/filter.admin.inc
- Theme filter order configuration form.
- theme_filter_admin_overview in modules/filter/filter.admin.inc
- Theme the admin overview form.
- theme_filter_tips in modules/filter/filter.pages.inc
- Format a set of filter tips.
- theme_filter_tips_more_info in modules/filter/filter.module
- Format a link to the more extensive filter tips.
- theme_locale_languages_overview_form in includes/locale.inc
- Theme the language overview form.
- theme_mark in includes/theme.inc
- Return a themed marker, useful for marking new or updated content.
- theme_menu_overview_form in modules/menu/menu.admin.inc
- Theme the menu overview form into a table.
- theme_more_help_link in includes/theme.inc
- Returns code that emits the 'more help'-link.
- theme_more_link in includes/theme.inc
- Returns code that emits the 'more' link used on blocks.
- theme_multipage_form_example in developer/examples/multipage_form_example.module
- A custom theme function.
- theme_multipage_form_example_node_form in developer/examples/multipage_form_example.module
- theme_nodeapi_example_rating in developer/examples/nodeapi_example.module
- A custom theme function.
- theme_node_admin_nodes in modules/node/node.admin.inc
- Theme node administration overview.
- theme_node_example_order_info in developer/examples/node_example.module
- A custom theme function.
- theme_node_filters in modules/node/node.admin.inc
- Theme node administration filter selector.
- theme_node_log_message in modules/node/node.module
- Theme a log message.
- theme_node_preview in modules/node/node.pages.inc
- Display a node preview for display during node creation and editing.
- theme_node_search_admin in modules/node/node.module
- Theme the content ranking part of the search settings admin page.
- theme_node_submitted in modules/node/node.module
- Format the "Submitted by username on date/time" for each node
- theme_pager in includes/pager.inc
- Format a query pager.
- theme_pager_link in includes/pager.inc
- Format a link to a specific query result page.
- theme_poll_choices in modules/poll/poll.module
- Theme the admin poll form for choices.
- theme_profile_admin_overview in modules/profile/profile.admin.inc
- Theme the profile field overview into a drag and drop enabled table.
- theme_system_admin_by_module in modules/system/system.admin.inc
- Theme output of the dashboard page.
- theme_system_modules in modules/system/system.admin.inc
- Theme callback for the modules form.
- theme_system_modules_uninstall in modules/system/system.admin.inc
- Themes a table of currently disabled modules.
- theme_system_powered_by in modules/system/system.module
- Format the Powered by Drupal text.
- theme_system_themes_form in modules/system/system.admin.inc
- Theme function for the system themes form.
- theme_system_theme_select_form in modules/system/system.admin.inc
- Theme the theme select form.
- theme_tablesort_indicator in includes/theme.inc
- Return a themed sort icon.
- theme_taxonomy_overview_terms in modules/taxonomy/taxonomy.admin.inc
- Theme the terms overview as a sortable list of terms.
- theme_taxonomy_overview_vocabularies in modules/taxonomy/taxonomy.admin.inc
- Theme the vocabulary overview as a sortable list of vocabularies.
- theme_trigger_display in modules/trigger/trigger.admin.inc
- Display actions assigned to this hook-op combination in a table.
- theme_update_report in modules/update/update.report.inc
- Theme project status report.
- theme_update_version in modules/update/update.report.inc
- Theme the version display of a project.
- theme_upload_attachments in modules/upload/upload.module
- Displays file attachments in table
- theme_upload_form_current in modules/upload/upload.module
- Theme the attachments list.
- theme_username in includes/theme.inc
- Format a username.
- theme_user_admin_account in modules/user/user.admin.inc
- Theme user administration overview.
- theme_user_admin_new_role in modules/user/user.admin.inc
- Theme the new-role form.
- theme_user_admin_perm in modules/user/user.admin.inc
- Theme the administer permissions page.
- theme_user_filters in modules/user/user.admin.inc
- Theme user administration filter selector.
- theme_xml_icon in includes/theme.inc
- Return code that emits an XML icon.
- throttle_admin_settings in modules/throttle/throttle.admin.inc
- Form builder; Configure the throttle system.
- throttle_admin_settings_validate in modules/throttle/throttle.admin.inc
- throttle_help in modules/throttle/throttle.module
- Implementation of hook_help().
- tracker_help in modules/tracker/tracker.module
- Implementation of hook_help().
- tracker_page in modules/tracker/tracker.pages.inc
- Menu callback. Prints a listing of active nodes on the site.
- translation_form_alter in modules/translation/translation.module
- Implementation of hook_form_alter().
- translation_help in modules/translation/translation.module
- Implementation of hook_help().
- translation_node_overview in modules/translation/translation.pages.inc
- Overview page for a node's translations.
- trigger_assign_form in modules/trigger/trigger.admin.inc
- Create the form definition for assigning an action to a hook-op combination.
- trigger_assign_form_submit in modules/trigger/trigger.admin.inc
- Submit function for trigger_assign_form().
- trigger_assign_form_validate in modules/trigger/trigger.admin.inc
- Validation function for trigger_assign_form().
- trigger_help in modules/trigger/trigger.module
- Implementation of hook_help().
- trigger_options in modules/trigger/trigger.module
- Often we generate a select field of all actions. This function generates the options for that select.
- trigger_unassign in modules/trigger/trigger.admin.inc
- Confirm removal of an assigned action.
- trigger_unassign_submit in modules/trigger/trigger.admin.inc
- update_calculate_project_data in modules/update/update.compare.inc
- Given the installed projects and the available release data retrieved from remote servers, calculate the current status.
- update_help in modules/update/update.module
- Implementation of hook_help().
- update_mail in modules/update/update.module
- Implementation of hook_mail().
- update_manual_status in modules/update/update.fetch.inc
- Callback to manually check the update status without cron.
- update_process_project_info in modules/update/update.compare.inc
- Process the list of projects on the system to figure out the currently installed versions, and other information that is required before we can compare against the available releases to produce the status report.
- update_requirements in modules/update/update.module
- Implementation of hook_requirements().
- update_settings in modules/update/update.settings.inc
- Form builder for the update settings tab.
- update_settings_submit in modules/update/update.settings.inc
- Submit handler for the settings tab.
- update_settings_validate in modules/update/update.settings.inc
- Validation callback for the settings form.
- upload_admin_settings in modules/upload/upload.admin.inc
- Menu callback for the upload settings form.
- upload_admin_settings_validate in modules/upload/upload.admin.inc
- Form API callback to validate the upload settings form.
- upload_form_alter in modules/upload/upload.module
- upload_help in modules/upload/upload.module
- Implementation of hook_help().
- upload_js in modules/upload/upload.module
- Menu-callback for JavaScript-based uploads.
- upload_link in modules/upload/upload.module
- Implementation of hook_link().
- user_action_info in modules/user/user.module
- Implementation of hook_action_info().
- user_admin in modules/user/user.admin.inc
- user_admin_access in modules/user/user.admin.inc
- Menu callback: list all access rules
- user_admin_access_add in modules/user/user.admin.inc
- Menu callback: add an access rule.
- user_admin_access_check_submit in modules/user/user.admin.inc
- user_admin_access_check_validate in modules/user/user.admin.inc
- user_admin_access_delete_confirm in modules/user/user.admin.inc
- Menu callback: delete an access rule
- user_admin_access_delete_confirm_submit in modules/user/user.admin.inc
- user_admin_access_edit in modules/user/user.admin.inc
- Menu callback: edit an access rule.
- user_admin_access_form in modules/user/user.admin.inc
- Form builder; Configure access rules.
- user_admin_access_form_submit in modules/user/user.admin.inc
- Submit callback for user_admin_access_form().
- user_admin_account in modules/user/user.admin.inc
- Form builder; User administration page.
- user_admin_account_submit in modules/user/user.admin.inc
- Submit the user administration update form.
- user_admin_account_validate in modules/user/user.admin.inc
- user_admin_check_host in modules/user/user.admin.inc
- user_admin_check_mail in modules/user/user.admin.inc
- user_admin_check_user in modules/user/user.admin.inc
- user_admin_perm in modules/user/user.admin.inc
- Menu callback: administer permissions.
- user_admin_perm_submit in modules/user/user.admin.inc
- user_admin_role in modules/user/user.admin.inc
- Menu callback: administer roles.
- user_admin_role_submit in modules/user/user.admin.inc
- user_admin_role_validate in modules/user/user.admin.inc
- user_admin_settings in modules/user/user.admin.inc
- Form builder; Configure user settings for this site.
- user_authenticate in modules/user/user.module
- Try to log in the user locally.
- user_block in modules/user/user.module
- Implementation of hook_block().
- user_confirm_delete in modules/user/user.pages.inc
- Form builder; confirm form for user deletion.
- user_confirm_delete_submit in modules/user/user.pages.inc
- Submit function for the confirm form for user deletion.
- user_edit_form in modules/user/user.module
- user_edit_submit in modules/user/user.pages.inc
- user_edit_validate in modules/user/user.pages.inc
- user_external_login_register in modules/user/user.module
- Helper function for authentication modules. Either login in or registers the current user, based on username. Either way, the global $user object is populated based on $name.
- user_filters in modules/user/user.module
- List user administration filters that can be applied.
- user_filter_form in modules/user/user.admin.inc
- Form builder; Return form for user administration filters.
- user_filter_form_submit in modules/user/user.admin.inc
- Process result from user administration filter form.
- user_help in modules/user/user.module
- Implementation of hook_help().
- user_hook_info in modules/user/user.module
- Implementation of hook_hook_info().
- user_login in modules/user/user.module
- Form builder; the main user login form.
- user_login_block in modules/user/user.module
- user_login_final_validate in modules/user/user.module
- A validate handler on the login form. Should be the last validator. Sets an error if user has not been authenticated yet.
- user_login_name_validate in modules/user/user.module
- A FAPI validate handler. Sets an error if supplied username has been blocked or denied access.
- user_multiple_delete_confirm in modules/user/user.module
- user_multiple_delete_confirm_submit in modules/user/user.module
- user_page_title in modules/user/user.module
- Menu item title callback - use the user name if it's not the current user.
- user_pass in modules/user/user.pages.inc
- Form builder; Request a password reset.
- user_pass_reset in modules/user/user.pages.inc
- Menu callback; process one time login link and redirects to the user page on success.
- user_pass_submit in modules/user/user.pages.inc
- user_pass_validate in modules/user/user.pages.inc
- user_profile_form in modules/user/user.pages.inc
- Form builder; edit a user account or one of their profile categories.
- user_profile_form_submit in modules/user/user.pages.inc
- Submit function for the user account and profile editing form.
- user_profile_form_validate in modules/user/user.pages.inc
- Validation function for the user account and profile editing form.
- user_register in modules/user/user.module
- Form builder; The user registration form.
- user_register_submit in modules/user/user.module
- Submit handler for the user registration form.
- user_roles in modules/user/user.module
- Retrieve an array of roles matching specified conditions.
- user_search in modules/user/user.module
- Implementation of hook_search().
- user_user in modules/user/user.module
- Implementation of hook_user().
- user_user_operations in modules/user/user.module
- Implementation of hook_user_operations().
- user_validate_mail in modules/user/user.module
- user_validate_name in modules/user/user.module
- Verify the syntax of the given name.
- user_validate_picture in modules/user/user.module
- watchdog_severity_levels in includes/common.inc
- @see watchdog
- xmlrpc_server in includes/xmlrpcs.inc
- The main entry point for XML-RPC requests.
- xmlrpc_server_call in includes/xmlrpcs.inc
- Dispatch the request and any parameters to the appropriate handler.
- xmlrpc_server_method_signature in includes/xmlrpcs.inc
- XML-RPC method system.methodSignature maps to this function.
- xmlrpc_server_multicall in includes/xmlrpcs.inc
- _batch_do in includes/batch.inc
- Do one pass of execution and inform back the browser about progression (used for JavaScript-mode only).
- _block_rehash in modules/block/block.module
- Update the 'blocks' DB table with the blocks currently exported by modules.
- _blogapi_validate_blogid in modules/blogapi/blogapi.module
- Validate blog ID, which maps to a content type in Drupal.
- _book_add_form_elements in modules/book/book.module
- Build the common elements of the book form for the node and outline forms.
- _book_install_type_create in modules/book/book.install
- _book_parent_select in modules/book/book.module
- Build the parent selection form element for the node form or outline tab
- _comment_form_submit in modules/comment/comment.module
- Prepare a comment for submission.
- _comment_get_modes in modules/comment/comment.module
- Return an array of viewing modes for comment listings.
- _comment_get_orders in modules/comment/comment.module
- Return an array of viewing orders for comment listings.
- _dblog_format_message in modules/dblog/dblog.admin.inc
- Formats a log message for display.
- _filter_html_settings in modules/filter/filter.module
- Settings for the HTML filter.
- _filter_url_settings in modules/filter/filter.module
- Settings for URL filter.
- _forum_parent_select in modules/forum/forum.admin.inc
- Returns a select box for available parent terms
- _locale_import_parse_plural_forms in includes/locale.inc
- Parses a Plural-Forms entry from a Gettext Portable Object file header
- _locale_import_po in includes/locale.inc
- Parses Gettext Portable Object file information and inserts into database
- _locale_languages_common_controls in includes/locale.inc
- Common elements of the language addition and editing form.
- _locale_prepare_predefined_list in includes/locale.inc
- Prepares the language code list for a select form item with only the unsupported ones
- _locale_rebuild_js in includes/locale.inc
- (Re-)Creates the JavaScript translation file for a language.
- _locale_translate_seek in includes/locale.inc
- Perform a string search and display results in a table
- _menu_item_localize in includes/menu.inc
- Localize the router item title using t() or another callback.
- _menu_overview_tree_form in modules/menu/menu.admin.inc
- Recursive helper function for menu_overview_form().
- _menu_parents_recurse in modules/menu/menu.module
- Recursive helper function for menu_parent_options().
- _menu_site_is_offline in includes/menu.inc
- Checks whether the site is off-line for maintenance.
- _module_build_dependencies in includes/module.inc
- Find dependencies any level deep and fill in dependents information too.
- _node_access_rebuild_batch_finished in modules/node/node.module
- Post-processing for node_access_rebuild_batch.
- _node_mass_update_batch_finished in modules/node/node.admin.inc
- Node Mass Update Batch 'finished' callback.
- _node_type_set_defaults in modules/node/node.module
- Set default values for a node type defined through hook_node_info().
- _poll_choice_form in modules/poll/poll.module
- _profile_field_types in modules/profile/profile.module
- _profile_form_explanation in modules/profile/profile.module
- _system_sql in modules/system/system.admin.inc
- Theme a SQL result table.
- _update_message_text in modules/update/update.module
- Helper function to return the appropriate message text when the site is out of date or missing a security update.
- _update_no_data in modules/update/update.module
- Prints a warning message when there is no data about available updates.
- _update_refresh in modules/update/update.fetch.inc
- Fetch project info via XML from a central server.
- _update_requirement_check in modules/update/update.module
- Private helper method to fill in the requirements array.
- _upload_form in modules/upload/upload.module
- _user_edit_validate in modules/user/user.module
- _user_mail_text in modules/user/user.module
- Returns a mail string for a variable name.
- _user_password_dynamic_validation in modules/user/user.module
- Add javascript and string translations for dynamic password validation (strength and confirmation checking).
- _xmlrpc in includes/xmlrpc.inc
- Execute an XML remote procedural call. This is private function; call xmlrpc() in common.inc instead of this function.
Code
includes/common.inc, line 887
<?php
function t($string, $args = array(), $langcode = NULL) {
global $language;
static $custom_strings;
$langcode = isset($langcode) ? $langcode : $language->language;
// First, check for an array of customized strings. If present, use the array
// *instead of* database lookups. This is a high performance way to provide a
// handful of string replacements. See settings.php for examples.
// Cache the $custom_strings variable to improve performance.
if (!isset($custom_strings[$langcode])) {
$custom_strings[$langcode] = variable_get('locale_custom_strings_'. $langcode, array());
}
// Custom strings work for English too, even if locale module is disabled.
if (isset($custom_strings[$langcode][$string])) {
$string = $custom_strings[$langcode][$string];
}
// Translate with locale module if enabled.
elseif (function_exists('locale') && $langcode != 'en') {
$string = locale($string, $langcode);
}
if (empty($args)) {
return $string;
}
else {
// Transform arguments before inserting them.
foreach ($args as $key => $value) {
switch ($key[0]) {
case '@':
// Escaped only.
$args[$key] = check_plain($value);
break;
case '%':
default:
// Escaped and placeholder.
$args[$key] = theme('placeholder', $value);
break;
case '!':
// Pass-through.
}
}
return strtr($string, $args);
}
}
?>Login or register to post comments 
support for updates to strings
Doesn't t() now support updates to strings? At least there is that option via the locale admin interface...so if it does updates then we should probably update this doc to reflect that.
jquery/js Drupal.t()
Note that there's an equivalent to t() for using translateable strings in JS called Drupal.t();