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' => format_username($account))), PASS_THROUGH);

?>
  • %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' => format_username($user), '%name-to' => format_username($account)));

?>

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

hook_locale()

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)

$options An associative array of additional options, with the following keys:

  • 'langcode' (default to the current language) The language code to translate to a language other than what is used to display the page.
  • 'context' (default to the empty context) The context the source string belongs to.

Return value

The translated string.

▾ 1018 functions call t()

actions_loop_test_action_info in modules/simpletest/tests/actions_loop_test.module
Implement hook_action_info().
actions_loop_test_trigger_info in modules/simpletest/tests/actions_loop_test.module
Implement hook_trigger_info().
actions_synchronize in includes/actions.inc
Synchronizes actions that are provided by modules in hook_action_info().
aggregator_aggregator_fetch in modules/aggregator/aggregator.fetcher.inc
Implement hook_aggregator_fetch().
aggregator_aggregator_fetch_info in modules/aggregator/aggregator.fetcher.inc
Implement hook_aggregator_fetch_info().
aggregator_aggregator_parse_info in modules/aggregator/aggregator.parser.inc
Implement hook_aggregator_parse_info().
aggregator_aggregator_process_info in modules/aggregator/aggregator.processor.inc
Implement hook_aggregator_process_info().
aggregator_aggregator_remove in modules/aggregator/aggregator.processor.inc
Implement hook_aggregator_remove().
aggregator_block_configure in modules/aggregator/aggregator.module
Implement hook_block_configure().
aggregator_block_info in modules/aggregator/aggregator.module
Implement hook_block_info().
aggregator_block_view in modules/aggregator/aggregator.module
Implement hook_block_view().
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_aggregator_admin_form_alter in modules/aggregator/aggregator.processor.inc
Implement hook_form_aggregator_admin_form_alter().
aggregator_help in modules/aggregator/aggregator.module
Implement 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.parser.inc
Parse a feed and store its items.
aggregator_permission in modules/aggregator/aggregator.module
Implement hook_permission().
aggregator_refresh in modules/aggregator/aggregator.module
Checks a news feed for new items.
archiver_get_archiver in includes/common.inc
Create the appropriate archiver for the specified file.
authorize_access_denied_page in ./authorize.php
Render a 403 access denied page for authorize.php
authorize_filetransfer_form in includes/authorize.inc
Build the form for choosing a FileTransfer type and supplying credentials.
authorize_filetransfer_form_validate in includes/authorize.inc
Validate callback for the filetransfer authorization form.
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 submissions.
block_custom_block_delete in modules/block/block.admin.inc
Menu callback; confirm deletion of custom blocks.
block_custom_block_delete_submit in modules/block/block.admin.inc
Deletion of custom blocks.
block_custom_block_form in modules/block/block.module
Define the custom block form.
block_example_block_configure in developer/examples/block_example.module
Implementation of hook_block_configure().
block_example_block_list in developer/examples/block_example.module
Implementation of hook_block_list().
block_example_block_view in developer/examples/block_example.module
Implementation of hook_block_view().
block_example_contents in developer/examples/block_example.module
A module-defined block content function.
block_form_system_performance_settings_alter in modules/block/block.module
Implement hook_form_FORM_ID_alter().
block_form_user_profile_form_alter in modules/block/block.module
Implement hook_form_FORM_ID_alter().
block_help in modules/block/block.module
Implement hook_help().
block_permission in modules/block/block.module
Implement hook_permission().
block_system_themes_form_submit in modules/block/block.module
Initialize blocks for enabled themes.
blog_block_info in modules/blog/blog.module
Implement hook_block_info().
blog_block_view in modules/blog/blog.module
Implement hook_block_view().
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
Implement hook_help().
blog_node_info in modules/blog/blog.module
Implement hook_node_info().
blog_node_view in modules/blog/blog.module
Implement hook_node_view().
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_view in modules/blog/blog.module
Implement hook_user_view().
blog_view in modules/blog/blog.module
Implement 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_configure in modules/book/book.module
Implement hook_block_configure().
book_block_info in modules/book/book.module
Implement hook_block_info().
book_block_view in modules/book/book.module
Implement hook_block_view().
book_export in modules/book/book.pages.inc
Menu callback; Generates various representation of a book page and its children.
book_field_build_modes in modules/book/book.module
Implement hook_field_build_modes().
book_form_alter in modules/book/book.module
Implement hook_form_alter().
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
Implement hook_help().
book_node_view_link in modules/book/book.module
Inject links into $node as needed.
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_permission in modules/book/book.module
Implement hook_permission().
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.
color_requirements in modules/color/color.install
comment_action_info in modules/comment/comment.module
Implement 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_approve in modules/comment/comment.pages.inc
Menu callback; publish specified comment.
comment_block_configure in modules/comment/comment.module
Implement hook_block_configure().
comment_block_info in modules/comment/comment.module
Implement hook_block_info().
comment_block_view in modules/comment/comment.module
Implement hook_block_view().
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_count_unpublished in modules/comment/comment.module
Returns a menu title which includes the number of unapproved comments.
comment_entity_info in modules/comment/comment.module
Implement hook_entity_info().
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_alter in modules/comment/comment.module
Implement hook_form_alter().
comment_form_node_type_form_alter in modules/comment/comment.module
Implement hook_form_FORM_ID_alter().
comment_form_submit in modules/comment/comment.module
Process comment form submissions; prepare the comment, store it, and set a redirection target.
comment_form_validate in modules/comment/comment.module
Validate comment form submissions.
comment_help in modules/comment/comment.module
Implement hook_help().
comment_links in modules/comment/comment.module
Helper function, build links for an individual comment.
comment_multiple_delete_confirm in modules/comment/comment.admin.inc
List the selected comments and verify that the admin wants to delete them.
comment_multiple_delete_confirm_submit in modules/comment/comment.admin.inc
Process comment_multiple_delete_confirm form submissions.
comment_node_view in modules/comment/comment.module
Implement hook_node_view().
comment_operations in modules/comment/comment.module
Comment operations. Offer different update operations depending on which comment administration page is being viewed.
comment_permission in modules/comment/comment.module
Implement hook_permission().
comment_preview in modules/comment/comment.module
Generate a comment preview.
comment_ranking in modules/comment/comment.module
Implement hook_ranking().
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_submit in modules/comment/comment.module
Prepare a comment for submission.
comment_tokens in modules/comment/comment.tokens.inc
Implement hook_tokens().
comment_token_info in modules/comment/comment.tokens.inc
Implement hook_token_info().
comment_unpublish_by_keyword_action_form in modules/comment/comment.module
Form builder; Prepare a form for blacklisted keywords.
comment_update_7000 in modules/comment/comment.install
Remove comment settings for page ordering.
common_test_drupal_goto_redirect in modules/simpletest/tests/common_test.module
Check that drupal_goto() exits once called.
confirm_form in modules/system/system.module
Output a confirmation form
contact_category_delete_form in modules/contact/contact.admin.inc
Form builder for deleting a contact category.
contact_category_delete_form_submit in modules/contact/contact.admin.inc
Submit handler for the confirm delete category form.
contact_category_edit_form in modules/contact/contact.admin.inc
Category edit page.
contact_category_edit_form_submit in modules/contact/contact.admin.inc
Process the contact category edit page form submission.
contact_category_edit_form_validate in modules/contact/contact.admin.inc
Validate the contact category edit page form submission.
contact_category_list in modules/contact/contact.admin.inc
Categories/list tab.
contact_form_user_admin_settings_alter in modules/contact/contact.module
Implement of hook_form_FORM_ID_alter().
contact_form_user_profile_form_alter in modules/contact/contact.module
Implement hook_form_FORM_ID_alter().
contact_help in modules/contact/contact.module
Implement hook_help().
contact_mail in modules/contact/contact.module
Implement hook_mail().
contact_permission in modules/contact/contact.module
Implement hook_permission().
contact_personal_form in modules/contact/contact.pages.inc
Form builder; the personal contact form.
contact_personal_form_submit in modules/contact/contact.pages.inc
Form submission handler for contact_personal_form().
contact_personal_form_validate in modules/contact/contact.pages.inc
Form validation handler for contact_personal_form().
contact_site_form in modules/contact/contact.pages.inc
Form builder; the site-wide contact form.
contact_site_form_submit in modules/contact/contact.pages.inc
Form submission handler for contact_site_form().
contact_site_form_validate in modules/contact/contact.pages.inc
Form validation handler for contact_site_form().
dashboard_admin in modules/dashboard/dashboard.module
Dashboard page callback.
dashboard_page_build in modules/dashboard/dashboard.module
Implement hook_page_build().
dashboard_permission in modules/dashboard/dashboard.module
Implement hook_permission().
database_test_tablesort in modules/simpletest/tests/database_test.module
Run a tablesort query and return the results.
database_test_tablesort_first in modules/simpletest/tests/database_test.module
Run a tablesort query with a second order_by after and return the results.
date_validate in includes/form.inc
Validates the date type to stop dates like February 30, 2006.
dblog_clear_log_form in modules/dblog/dblog.admin.inc
Return form for dblog clear button.
dblog_clear_log_submit in modules/dblog/dblog.admin.inc
Submit callback: clear database with log messages.
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_form_system_logging_settings_alter in modules/dblog/dblog.module
Implement hook_form_FORM_ID_alter().
dblog_help in modules/dblog/dblog.module
Implement 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.
drupal_check_module in includes/install.inc
Check a module's requirements.
drupal_deliver_html_page in includes/common.inc
Package and send the result of a page callback to the browser as a normal HTML page.
drupal_mail in includes/mail.inc
Compose and optionally send an e-mail message.
drupal_mail_system in includes/mail.inc
Returns an object that implements the MailSystemInterface.
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.
field_create_field in modules/field/field.crud.inc
Create a field.
field_create_instance in modules/field/field.crud.inc
Creates an instance of a field, binding it to a bundle.
field_default_form in modules/field/field.form.inc
Create a separate form element for each field.
field_default_view in modules/field/field.default.inc
Default field 'view' operation.
field_help in modules/field/field.module
Implement hook_help().
field_multiple_value_form in modules/field/field.form.inc
Special handling to create form elements for multiple values.
field_sql_storage_field_storage_info in modules/field/modules/field_sql_storage/field_sql_storage.module
Implement hook_field_storage_info().
field_sql_storage_help in modules/field/modules/field_sql_storage/field_sql_storage.module
Implement hook_help().
field_test_entity_add in modules/simpletest/tests/field_test.module
field_test_entity_edit in modules/simpletest/tests/field_test.module
field_test_entity_form in modules/simpletest/tests/field_test.module
Form to set the value of fields attached to our entity.
field_test_entity_form_submit in modules/simpletest/tests/field_test.module
Submit handler for field_test_set_field_values().
field_test_entity_info in modules/simpletest/tests/field_test.module
Define a test fieldable entity.
field_test_field_build_modes in modules/simpletest/tests/field_test.module
Implement hook_field_build_modes().
field_test_field_formatter_info in modules/simpletest/tests/field_test.module
Implement hook_field_formatter_info().
field_test_field_info in modules/simpletest/tests/field_test.module
Implement hook_field_info().
field_test_field_instance_settings_form in modules/simpletest/tests/field_test.module
Implement hook_field_instance_settings_form().
field_test_field_settings_form in modules/simpletest/tests/field_test.module
Implement hook_field_settings_form().
field_test_field_storage_info in modules/simpletest/tests/field_test.module
Implement hook_field_storage_info().
field_test_field_validate in modules/simpletest/tests/field_test.module
Implement hook_field_validate().
field_test_field_widget_info in modules/simpletest/tests/field_test.module
Implement hook_field_widget_info().
field_test_field_widget_settings_form in modules/simpletest/tests/field_test.module
Implement hook_field_widget_settings_form().
field_test_menu in modules/simpletest/tests/field_test.module
Implement hook_menu().
field_test_permission in modules/simpletest/tests/field_test.module
Implement hook_permission().
field_ui_default_value_widget in modules/field_ui/field_ui.admin.inc
Build default value fieldset.
field_ui_display_overview_form in modules/field_ui/field_ui.admin.inc
Menu callback; presents a listing of fields display settings for a content type.
field_ui_display_overview_form_submit in modules/field_ui/field_ui.admin.inc
Submit handler for the display overview form.
field_ui_existing_field_options in modules/field_ui/field_ui.admin.inc
Return an array of existing field to be added to a bundle.
field_ui_fields_list in modules/field_ui/field_ui.admin.inc
Menu callback; lists all defined fields for quick reference.
field_ui_field_delete_form in modules/field_ui/field_ui.admin.inc
Menu callback; present a form for removing a field from a content type.
field_ui_field_delete_form_submit in modules/field_ui/field_ui.admin.inc
Remove a field from a content type.
field_ui_field_edit_form in modules/field_ui/field_ui.admin.inc
Menu callback; presents the field instance edit page.
field_ui_field_edit_form_submit in modules/field_ui/field_ui.admin.inc
Save instance settings after editing.
field_ui_field_edit_form_validate in modules/field_ui/field_ui.admin.inc
Validate a field's settings.
field_ui_field_overview_form in modules/field_ui/field_ui.admin.inc
Menu callback; listing of fields for a content type.
field_ui_field_overview_form_submit in modules/field_ui/field_ui.admin.inc
Submit handler for the field overview form.
field_ui_field_settings_form in modules/field_ui/field_ui.admin.inc
Menu callback; presents the field settings edit page.
field_ui_field_settings_form_submit in modules/field_ui/field_ui.admin.inc
Save a field's settings after editing.
field_ui_field_ui_build_modes_tabs in modules/field_ui/field_ui.module
Implement hook_field_ui_build_modes_tabs() on behalf of other core modules.
field_ui_help in modules/field_ui/field_ui.module
Implement hook_help().
field_ui_inactive_message in modules/field_ui/field_ui.admin.inc
Helper function to display a message about inactive fields.
field_ui_menu_label in modules/field_ui/field_ui.module
Menu title callback; Return a field label based on its instance.
field_ui_widget_type_form in modules/field_ui/field_ui.admin.inc
Menu callback; select a widget for the field.
field_ui_widget_type_form_submit in modules/field_ui/field_ui.admin.inc
Submit the change in widget type.
file_ajax_progress in modules/file/file.module
Menu callback for upload progress.
file_ajax_upload in modules/file/file.module
Menu callback; Shared AJAX callback for file uploads and deletions.
file_field_formatter_info in modules/file/file.field.inc
Implement hook_field_formatter_info().
file_field_info in modules/file/file.field.inc
Implement hook_field_info().
file_field_instance_settings_form in modules/file/file.field.inc
Implement hook_field_instance_settings_form().
file_field_settings_form in modules/file/file.field.inc
Implement hook_field_settings_form().
file_field_widget in modules/file/file.field.inc
Implementation of hook_field_widget().
file_field_widget_info in modules/file/file.field.inc
Implement hook_field_widget_info().
file_field_widget_process in modules/file/file.field.inc
An element #process callback for the file_generic field type.
file_field_widget_settings_form in modules/file/file.field.inc
Implement hook_field_widget_settings_form().
file_managed_file_process in modules/file/file.module
Process function to expand the managed_file element type.
file_managed_file_save_upload in modules/file/file.module
Given a managed_file element, save any files that have been uploaded into it.
file_managed_file_validate in modules/file/file.module
An #element_validate callback for the managed_file element.
file_module_test_form in modules/file/tests/file_module_test.module
file_munge_filename in includes/file.inc
Modify a filename as needed for security purposes.
file_requirements in modules/file/file.install
Implement hook_requirements().
file_save_upload in includes/file.inc
Saves a file upload to a new location.
file_test_stream_wrappers in modules/simpletest/tests/file_test.module
Implement hook_stream_wrappers().
file_unmanaged_copy in includes/file.inc
Copy a file to a new location without calling any hooks or making any changes to the database.
file_unmanaged_save_data in includes/file.inc
Save a string to the specified destination without calling any hooks or making any changes to the database.
file_validate_extensions in includes/file.inc
Check that the filename ends with an allowed extension.
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.
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.
filter_admin_configure in modules/filter/filter.admin.inc
Build a form to change the settings for filters in a text format.
filter_admin_configure_page in modules/filter/filter.admin.inc
Menu callback; display settings defined by a format's filters.
filter_admin_configure_submit in modules/filter/filter.admin.inc
Form submit handler for text format filter configuration form.
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 text format form.
filter_admin_format_form_submit in modules/filter/filter.admin.inc
Process text format form submissions.
filter_admin_format_form_validate in modules/filter/filter.admin.inc
Validate text format form submissions.
filter_admin_format_page in modules/filter/filter.admin.inc
Menu callback; Display a text 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 text formats and allows them to be rearranged.
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_info in modules/filter/filter.module
Implement hook_filter_info().
filter_form in modules/filter/filter.module
Generates a selector for choosing a format in a form.
filter_help in modules/filter/filter.module
Implement hook_help().
filter_permission in modules/filter/filter.module
Implement hook_permission().
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.
format_username in includes/common.inc
Format a username.
form_process_password_confirm in includes/form.inc
Expand a password_confirm field into two text boxes.
forum_admin_settings in modules/forum/forum.admin.inc
Form builder for the forum settings page.
forum_block_configure in modules/forum/forum.module
Implement hook_block_configure().
forum_block_info in modules/forum/forum.module
Implement hook_block_info().
forum_block_view in modules/forum/forum.module
Implement hook_block_view().
forum_block_view_pre_render in modules/forum/forum.module
A #pre_render callback. Lists nodes based on the element's #query property. *
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
Implement forms api _submit call. Deletes a forum after confirmation.
forum_enable in modules/forum/forum.install
forum_form in modules/forum/forum.module
Implement hook_form().
forum_form_alter in modules/forum/forum.module
Implement 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
@file Administrative page callbacks for the forum module.
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
Implement hook_help().
forum_node_info in modules/forum/forum.module
Implement hook_node_info().
forum_node_validate in modules/forum/forum.module
Implement hook_node_validate().
forum_node_view in modules/forum/forum.module
Implement hook_node_view().
forum_overview in modules/forum/forum.admin.inc
Returns an overview list of existing forums and containers
forum_permission in modules/forum/forum.module
Implement hook_permission().
garland_breadcrumb in themes/garland/template.php
Return a themed breadcrumb trail.
garland_preprocess_page in themes/garland/template.php
Override or insert variables into the page template.
help_help in modules/help/help.module
Implement 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 modules/system/system.api.php
Declares information about actions.
hook_action_info_alter in modules/system/system.api.php
Alters the actions declared by another module.
hook_aggregator_fetch_info in modules/aggregator/aggregator.api.php
Implement this hook to expose the title and a short description of your fetcher.
hook_aggregator_parse_info in modules/aggregator/aggregator.api.php
Implement this hook to expose the title and a short description of your parser.
hook_aggregator_process_info in modules/aggregator/aggregator.api.php
Implement this hook to expose the title and a short description of your processor.
hook_block_configure in modules/block/block.api.php
Configuration form for the block.
hook_block_info in modules/block/block.api.php
Define all blocks provided by the module.
hook_block_view in modules/block/block.api.php
Process the block when enabled in a region in order to view its contents.
hook_block_view_MODULE_DELTA_alter in modules/block/block.api.php
Perform alterations to a specific block.
hook_comment_delete in modules/comment/comment.api.php
The comment is being deleted by the moderator.
hook_comment_publish in modules/comment/comment.api.php
The comment is being published by the moderator.
hook_comment_unpublish in modules/comment/comment.api.php
The comment is being unpublished by the moderator.
hook_date_format_types in modules/system/system.api.php
Defines additional date types.
hook_entity_info in modules/system/system.api.php
Inform the base system and the Field API about one or more entity types.
hook_field_extra_fields in modules/field/field.api.php
Expose "pseudo-field" components on fieldable objects.
hook_field_formatter_info in modules/field/field.api.php
Expose Field API formatter types.
hook_field_info in modules/field/field.api.php
Define Field API field types.
hook_field_instance_settings_form in modules/field_ui/field_ui.api.php
Instance settings form.
hook_field_settings_form in modules/field_ui/field_ui.api.php
Field settings form.
hook_field_storage_info in modules/field/field.api.php
Expose Field API storage backends.
hook_field_validate in modules/field/field.api.php
Define custom validate behavior for this module's field types.
hook_field_widget_info in modules/field/field.api.php
Expose Field API widget types.
hook_field_widget_settings_form in modules/field_ui/field_ui.api.php
Widget settings form.
hook_file_validate in modules/system/system.api.php
Check that files meet a given criteria.
hook_filter_info in modules/filter/filter.api.php
Define content filters.
hook_form in modules/node/node.api.php
Display a node editing form.
hook_form_alter in modules/system/system.api.php
Perform alterations before a form is rendered.
hook_form_FORM_ID_alter in modules/system/system.api.php
Provide a form-specific alteration instead of the global hook_form_alter().
hook_form_system_theme_settings_alter in modules/system/system.api.php
Allow themes to alter the theme-specific settings form.
hook_help in modules/help/help.api.php
Provide online user help.
hook_image_effect_info in modules/image/image.api.php
Define information about image effects provided by a module.
hook_image_toolkits in modules/system/system.api.php
Define image toolkits provided by this module.
hook_language_negotiation_info in modules/locale/locale.api.php
Allow modules to define their own language providers.
hook_language_types_info in modules/locale/locale.api.php
Allow modules to define their own language types.
hook_language_types_info_alter in modules/locale/locale.api.php
Perform alterations on language types.
hook_locale in modules/locale/locale.api.php
Allows modules to define their own text groups that can be translated.
hook_mail_alter in modules/system/system.api.php
Alter an email message created with the drupal_mail() function.
hook_menu_contextual_links_alter in modules/menu/menu.api.php
Alter contextual links before they are rendered.
hook_menu_local_tasks_alter in modules/menu/menu.api.php
Alter tabs and actions displayed on the page before they are rendered.
hook_modules_enabled in modules/system/system.api.php
Perform necessary actions after modules are enabled.
hook_node_info in modules/node/node.api.php
Defines module-provided node types.
hook_node_operations in modules/node/node.api.php
Add mass node operations.
hook_node_validate in modules/node/node.api.php
The user has finished editing the node and is previewing or submitting it.
hook_page_alter in modules/system/system.api.php
Perform alterations before a page is rendered.
hook_page_build in modules/system/system.api.php
Add elements to a page before it is rendered.
hook_permission in modules/system/system.api.php
Define user permissions.
hook_prepare in modules/node/node.api.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_ranking in modules/node/node.api.php
Provide additional methods of scoring for core search results for nodes.
hook_requirements in modules/system/system.api.php
Check installation requirements and do status reporting.
hook_search_admin in modules/search/search.api.php
Add elements to the search administration form.
hook_stream_wrappers in modules/system/system.api.php
Registers PHP stream wrapper implementations associated with a module.
hook_stream_wrappers_alter in modules/system/system.api.php
Alters the list of PHP stream wrapper implementations.
hook_trigger_info in modules/trigger/trigger.api.php
Declares triggers (events) for users to assign actions to.
hook_update_N in modules/system/system.api.php
Perform a single update. For each patch which requires a database change add a new hook_update_N() which will be called by update.php.
hook_update_status_alter in modules/update/update.api.php
Alter the information about available updates for projects.
hook_username_alter in modules/system/system.api.php
Alter the username that is displayed for a user.
hook_user_cancel_methods_alter in modules/user/user.api.php
Modify account cancellation methods.
hook_user_categories in modules/user/user.api.php
Retrieve a list of all user setting/information categories.
hook_user_login in modules/user/user.api.php
The user just logged in.
hook_user_operations in modules/user/user.api.php
Add mass user operations.
hook_user_view in modules/user/user.api.php
The user's account information is being displayed.
hook_validate in modules/node/node.api.php
Verify a node editing form.
hook_view in modules/node/node.api.php
Display a node.
hook_watchdog in modules/system/system.api.php
Log an event message
hook_xmlrpc in modules/system/system.api.php
Register XML-RPC callbacks.
image_crop_form in modules/image/image.admin.inc
Form structure for the image crop form.
image_effect_color_validate in modules/image/image.admin.inc
Element validate handler to ensure a hexadecimal color value.
image_effect_delete_form in modules/image/image.admin.inc
Form builder; Form for deleting an image effect.
image_effect_delete_form_submit in modules/image/image.admin.inc
Submit handler to delete an image effect.
image_effect_form in modules/image/image.admin.inc
Form builder; Form for adding and editing image effects.
image_effect_form_submit in modules/image/image.admin.inc
Submit handler for updating an image effect.
image_effect_integer_validate in modules/image/image.admin.inc
Element validate handler to ensure an integer pixel value.
image_effect_scale_validate in modules/image/image.admin.inc
Element validate handler to ensure that either a height or a width is specified.
image_field_formatter_info in modules/image/image.field.inc
Implement hook_field_formatter_info().
image_field_info in modules/image/image.field.inc
Implement hook_field_info().
image_field_instance_settings_form in modules/image/image.field.inc
Implement hook_field_instance_settings_form().
image_field_settings_form in modules/image/image.field.inc
Implement hook_field_settings_form().
image_field_widget_info in modules/image/image.field.inc
Implement hook_field_widget_info().
image_field_widget_process in modules/image/image.field.inc
An element #process callback for the image_image field type.
image_field_widget_settings_form in modules/image/image.field.inc
Implement hook_field_widget_settings_form().
image_gd_settings in modules/system/image.gd.inc
Retrieve settings for the GD2 toolkit.
image_gd_settings_validate in modules/system/image.gd.inc
Validate the submitted GD settings.
image_help in modules/image/image.module
Implement of hook_help().
image_image_effect_info in modules/image/image.effects.inc
Implement hook_image_effect_info().
image_permission in modules/image/image.module
Implement hook_permission().
image_resize_form in modules/image/image.admin.inc
Form structure for the image resize form.
image_rotate_form in modules/image/image.admin.inc
Form structure for the image rotate form.
image_scale_form in modules/image/image.admin.inc
Form structure for the image scale form.
image_style_add_form in modules/image/image.admin.inc
Form builder; Form for adding a new image style.
image_style_add_form_submit in modules/image/image.admin.inc
Submit handler for adding a new image style.
image_style_delete_form in modules/image/image.admin.inc
Form builder; Form for deleting an image style.
image_style_delete_form_submit in modules/image/image.admin.inc
Submit handler to delete an image style.
image_style_form in modules/image/image.admin.inc
Form builder; Edit an image style name and effects order.
image_style_form_add_submit in modules/image/image.admin.inc
Submit handler for adding a new image effect to an image style.
image_style_form_add_validate in modules/image/image.admin.inc
Validate handler for adding a new image effect to an image style.
image_style_form_override_submit in modules/image/image.admin.inc
Submit handler for overriding a module-defined style.
image_style_form_submit in modules/image/image.admin.inc
Submit handler for saving an image style.
image_style_generate in modules/image/image.module
Menu callback; Given a style and image path, generate a derivative.
image_style_name_validate in modules/image/image.admin.inc
Element validate function to ensure unique, URL safe style names.
image_style_options in modules/image/image.module
Get an array of image styles suitable for using as select list options.
image_style_revert_form in modules/image/image.admin.inc
Confirmation form to revert a database style to its default.
image_style_revert_form_submit in modules/image/image.admin.inc
Submit handler to convert an overridden style to its default.
image_test_image_toolkits in modules/simpletest/tests/image_test.module
Implement hook_image_toolkits().
language_negotiation_info in includes/language.inc
Return all the defined language providers.
list_allowed_values_validate in modules/field/modules/list/list.module
Element validate callback; check that the entered values are valid.
list_field_formatter_info in modules/field/modules/list/list.module
Implement hook_field_formatter_info().
list_field_info in modules/field/modules/list/list.module
Implement hook_field_info().
list_field_settings_form in modules/field/modules/list/list.module
Implement hook_field_settings_form().
list_field_validate in modules/field/modules/list/list.module
Implement hook_field_validate().
locale_block_info in modules/locale/locale.module
Implement hook_block_info().
locale_block_view in modules/locale/locale.module
Implement hook_block_view().
locale_date_format_form in modules/locale/locale.module
Provide date localization configuration options to users.
locale_date_format_form_submit in modules/locale/locale.module
Submit handler for configuring localized date formats on the locale_date_format_form.
locale_date_format_language_overview_page in modules/locale/locale.module
Display edit date format links for each language.
locale_date_format_reset_form in modules/locale/locale.module
Reset locale specific date formats to the global defaults.
locale_form_alter in modules/locale/locale.module
Implement hook_form_alter().
locale_form_node_type_form_alter in modules/locale/locale.module
Implement hook_form_FORM_ID_alter().
locale_form_path_admin_form_alter in modules/locale/locale.module
Implement hook_form_FORM_ID_alter().
locale_help in modules/locale/locale.module
Implement 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 handler 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_language_negotiation_info in modules/locale/locale.module
Implement hook_language_negotiation_info().
locale_language_providers_session_form in includes/locale.inc
The URL language provider configuration form.
locale_language_providers_url_form in includes/locale.inc
The URL language provider configuration form.
locale_language_selector_form in modules/locale/locale.module
Form builder callback to display language selection widget.
locale_language_types_info in modules/locale/locale.module
Implement hook_language_types_info().
locale_locale in modules/locale/locale.module
Implement hook_locale().
locale_permission in modules/locale/locale.module
Implement hook_permission().
locale_test_locale in modules/locale/tests/locale_test.module
Implement 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_translation_filters in includes/locale.inc
List locale translation filters that can be applied.
locale_translation_filter_form in includes/locale.inc
Return form for locale translation filters.
locale_translation_filter_form_submit in includes/locale.inc
Process result from locale translation filter form.
locale_translation_filter_form_validate in includes/locale.inc
Validate result from locale translation filter form.
map_month in includes/form.inc
Helper function for usage with drupal_map_assoc to display month names.
menu_form_alter in modules/menu/menu.module
Implement hook_form_alter(). Adds menu item fields to the node form.
menu_form_node_type_form_alter in modules/menu/menu.module
Implement hook_form_FORM_ID_alter() for the node type form. Adds menu options to the node type form.
menu_help in modules/menu/menu.module
Implement hook_help().
menu_node_save in modules/menu/menu.module
Helper for hook_node_insert() and hook_node_update().
menu_permission in modules/menu/menu.module
Implement hook_permission().
menu_set_active_trail in includes/menu.inc
Sets or gets the active trail (path to root menu root) of the current page.
module_test_permission in modules/simpletest/tests/module_test.module
Implement hook_permission().
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_example_permission in developer/examples/node_access_example.module
Implementation of hook_permission().
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
Implement 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_content in modules/node/node.admin.inc
Menu callback: content administration.
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_info in modules/node/node.module
Implement hook_block_info().
node_block_view in modules/node/node.module
Implement hook_block_view().
node_build_content in modules/node/node.module
Builds a structured array representing the node's content.
node_configure_rebuild_confirm in modules/node/node.admin.inc
Menu callback: confirm rebuilding of permissions.
node_delete_confirm in modules/node/node.pages.inc
Menu callback -- ask for confirmation of node deletion
node_delete_confirm_submit in modules/node/node.pages.inc
Execute node deletion
node_entity_info in modules/node/node.module
Implement hook_entity_info().
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_field_build_modes in modules/node/node.module
Implement hook_field_build_modes().
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_search_form_alter in modules/node/node.module
Implement hook_form_FORM_ID_alter().
node_form_submit in modules/node/node.pages.inc
node_help in modules/node/node.module
Implement hook_help().
node_language_negotiation_info in modules/node/node.module
Implement hook_language_negotiation_info().
node_list_permissions in modules/node/node.module
Helper function to generate standard node permission list for a given type.
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
Implement 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_page_edit in modules/node/node.pages.inc
Menu callback; presents the node editing form, or redirects to delete confirmation.
node_permission in modules/node/node.module
Implement hook_permission().
node_preview in modules/node/node.pages.inc
Generate a node preview.
node_ranking in modules/node/node.module
Implement hook_ranking().
node_requirements in modules/node/node.module
Implement hook_requirements().
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_admin in modules/node/node.module
Implement hook_search_admin().
node_show in modules/node/node.module
Generate an array which displays a node detail page.
node_test_node_view in modules/node/tests/node_test.module
Implement hook_node_view().
node_tokens in modules/node/node.tokens.inc
Implement hook_tokens().
node_token_info in modules/node/node.tokens.inc
Implement hook_token_info().
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
Implement 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_type_set_defaults in modules/node/node.module
Set the default values for a node type.
node_unpublish_by_keyword_action_form in modules/node/node.module
node_update_7006 in modules/node/node.install
Convert body and teaser from node properties to fields, and migrate status/comment/promote and sticky columns to the {node_revision} table.
node_validate in modules/node/node.module
Perform validation checks on the given node.
number_decimal_validate in modules/field/modules/number/number.module
FAPI validation of an individual decimal element.
number_field_formatter_info in modules/field/modules/number/number.module
Implement hook_field_formatter_info().
number_field_info in modules/field/modules/number/number.module
Implement hook_field_info().
number_field_instance_settings_form in modules/field/modules/number/number.module
Implement hook_field_instance_settings_form().
number_field_settings_form in modules/field/modules/number/number.module
Implement hook_field_settings_form().
number_field_validate in modules/field/modules/number/number.module
Implement hook_field_validate().
number_field_widget_info in modules/field/modules/number/number.module
Implement hook_field_widget_info().
number_float_validate in modules/field/modules/number/number.module
FAPI validation of an individual float element.
number_integer_validate in modules/field/modules/number/number.module
FAPI validation of an individual integer element.
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_requirements in modules/openid/openid.install
Implement hook_requirements().
openid_test_html_openid1 in modules/openid/tests/openid_test.module
Menu callback; regular HTML page with OpenID 1.0 <link> element.
openid_test_html_openid2 in modules/openid/tests/openid_test.module
Menu callback; regular HTML page with OpenID 2.0 <link> element.
openid_test_yadis_http_equiv in modules/openid/tests/openid_test.module
Menu callback; regular HTML page with <meta> element.
openid_test_yadis_xrds in modules/openid/tests/openid_test.module
Menu callback; XRDS document that references the OP Endpoint URL.
openid_test_yadis_x_xrds_location in modules/openid/tests/openid_test.module
Menu callback; regular HTML page with an X-XRDS-Location HTTP header.
options_field_widget_info in modules/field/modules/options/options.module
Implement hook_field_widget_info().
options_validate in modules/field/modules/options/options.module
FAPI function to validate options element.
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().
page_example_perm in developer/examples/page_example.module
Implementation of hook_perm().
password_confirm_validate in includes/form.inc
Validate password_confirm element.
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 URL alias to the database.
path_admin_form_validate in modules/path/path.admin.inc
Verify that a URL alias is valid
path_admin_overview in modules/path/path.admin.inc
Return a listing of all defined URL aliases.
path_form_alter in modules/path/path.module
Implement hook_form_alter().
path_form_element_validate in modules/path/path.module
Form element validation handler for URL alias form element.
path_form_taxonomy_form_term_alter in modules/path/path.module
Implement hook_form_FORM_ID_alter().
path_help in modules/path/path.module
Implement hook_help().
path_permission in modules/path/path.module
Implement hook_permission().
php_disable in modules/php/php.install
Implement hook_disable().
php_filter_info in modules/php/php.module
Implement hook_filter_info().
php_help in modules/php/php.module
Implement hook_help().
php_install in modules/php/php.install
Implement hook_install().
php_permission in modules/php/php.module
Implement hook_permission().
poll_block_info in modules/poll/poll.module
Implement hook_block_info().
poll_block_latest_poll_view in modules/poll/poll.module
Return content for 'latest poll' block.
poll_block_view in modules/poll/poll.module
Implement hook_block_view().
poll_cancel in modules/poll/poll.module
Submit callback for poll_cancel_form().
poll_cancel_form in modules/poll/poll.module
Builds the cancel form for a poll.
poll_field_extra_fields in modules/poll/poll.module
Implement hook_field_extra_fields().
poll_form in modules/poll/poll.module
Implement hook_form().
poll_help in modules/poll/poll.module
Implement hook_help().
poll_node_info in modules/poll/poll.module
Implement hook_node_info().
poll_page in modules/poll/poll.pages.inc
Menu callback to provide a simple list of all polls available.
poll_permission in modules/poll/poll.module
Implement hook_permission().
poll_token_info in modules/poll/poll.tokens.inc
Implement hook_token_info().
poll_validate in modules/poll/poll.module
Implement hook_validate().
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_configure in modules/profile/profile.module
Implement hook_block_configure().
profile_block_view in modules/profile/profile.module
Implement hook_block_view().
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
Implement hook_help().
profile_user_form_validate in modules/profile/profile.module
Form validation handler for the user register/profile form.
scaffolding_example_delete_confirm in developer/examples/scaffolding_example/scaffolding_example.admin.inc
Build the delete confirmation form.
scaffolding_example_delete_confirm_submit in developer/examples/scaffolding_example/scaffolding_example.admin.inc
scaffolding_example_form in developer/examples/scaffolding_example/scaffolding_example.admin.inc
Build the record editing form.
scaffolding_example_overview_form in developer/examples/scaffolding_example/scaffolding_example.admin.inc
Build an overview form with drag and drop re-ordering of records.
scaffolding_example_overview_pager in developer/examples/scaffolding_example/scaffolding_example.admin.inc
Builds a sortable, paged overview of all records.
scaffolding_example_page in developer/examples/scaffolding_example/scaffolding_example.pages.inc
Build a simple listing page for records.
scaffolding_example_schema in developer/examples/scaffolding_example/scaffolding_example.install
Implementation of hook_schema().
scaffolding_example_update_6100 in developer/examples/scaffolding_example/scaffolding_example.install
Implementation of hook_update_N().
search_admin_settings in modules/search/search.admin.inc
Menu callback; displays the search module settings page.
search_admin_settings_submit in modules/search/search.admin.inc
Submit callback.
search_block_info in modules/search/search.module
Implement hook_block_info().
search_box in modules/search/search.module
Form builder; Output a search form for the search block'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
Implement hook_help().
search_permission in modules/search/search.module
Implement hook_permission().
search_reindex_confirm in modules/search/search.admin.inc
Menu callback: confirm wiping of the index.
search_reindex_confirm_submit in modules/search/search.admin.inc
Handler for wipe confirmation
search_view in modules/search/search.pages.inc
Menu callback; presents the search form and/or search results.
seven_tablesort_indicator in themes/seven/template.php
Override of theme_tablesort_indicator().
shortcut_block_info in modules/shortcut/shortcut.module
Implement hook_block_info().
shortcut_block_view in modules/shortcut/shortcut.module
Implement hook_block_view().
shortcut_link_add in modules/shortcut/shortcut.admin.inc
Menu callback; Build the form for adding a new shortcut link.
shortcut_link_add_inline in modules/shortcut/shortcut.admin.inc
Menu callback; Creates a new link in the provided shortcut set
shortcut_link_add_submit in modules/shortcut/shortcut.admin.inc
Submit handler for the form that adds shortcut links.
shortcut_link_delete in modules/shortcut/shortcut.admin.inc
Menu callback; Build the form for deleting a shortcut link.
shortcut_link_delete_submit in modules/shortcut/shortcut.admin.inc
Submit handler for the shortcut link deletion form.
shortcut_link_edit in modules/shortcut/shortcut.admin.inc
Menu callback; Build the form for editing a shortcut link.
shortcut_link_edit_submit in modules/shortcut/shortcut.admin.inc
Submit handler for the shortcut link editing form.
shortcut_link_edit_validate in modules/shortcut/shortcut.admin.inc
Validation handler for the shortcut link add and edit forms.
shortcut_page_build in modules/shortcut/shortcut.module
Implement hook_page_build().
shortcut_permission in modules/shortcut/shortcut.module
Implement hook_permission().
shortcut_set_customize in modules/shortcut/shortcut.admin.inc
Menu callback; Build the form for customizing shortcut sets.
shortcut_set_customize_submit in modules/shortcut/shortcut.admin.inc
Submit handler for the shortcut set customization form.
shortcut_set_switch in modules/shortcut/shortcut.admin.inc
Menu callback; Build the form for switching shortcut sets.
shortcut_set_switch_submit in modules/shortcut/shortcut.admin.inc
Submit handler for the form that switches shortcut sets.
simpletest_clean_database in modules/simpletest/simpletest.module
Removed prefixed tables from the database that are left over from crashed tests.
simpletest_clean_environment in modules/simpletest/simpletest.module
Remove all temporary database tables and directories.
simpletest_clean_temporary_directories in modules/simpletest/simpletest.module
Find all leftover temporary directories and remove them.
simpletest_help in modules/simpletest/simpletest.module
Implement hook_help().
simpletest_permission in modules/simpletest/simpletest.module
Implement hook_permission().
simpletest_requirements in modules/simpletest/simpletest.install
Check that the cURL extension exists for PHP.
simpletest_result_form in modules/simpletest/simpletest.pages.inc
Test results form for $test_id.
simpletest_result_status_image in modules/simpletest/simpletest.pages.inc
Get the appropriate image for the status.
simpletest_run_tests in modules/simpletest/simpletest.module
Actually runs tests.
simpletest_settings_form in modules/simpletest/simpletest.pages.inc
Provides settings form for SimpleTest variables.
simpletest_test_form in modules/simpletest/simpletest.pages.inc
List tests arranged in groups that can be selected and run.
simpletest_test_form_submit in modules/simpletest/simpletest.pages.inc
Run selected tests.
simpletest_test_stream_wrappers in modules/simpletest/simpletest.module
Implementation of hook_stream_wrappers().
statistics_access_log in modules/statistics/statistics.admin.inc
Menu callback; Displays recent page accesses.
statistics_block_configure in modules/statistics/statistics.module
Implement hook_block_configure().
statistics_block_info in modules/statistics/statistics.module
Implement hook_block_info().
statistics_block_view in modules/statistics/statistics.module
Implement hook_block_view().
statistics_help in modules/statistics/statistics.module
Implement hook_help().
statistics_node_tracker in modules/statistics/statistics.pages.inc
statistics_permission in modules/statistics/statistics.module
Implement hook_permission().
statistics_ranking in modules/statistics/statistics.module
Implement hook_ranking().
statistics_recent_hits in modules/statistics/statistics.admin.inc
Menu callback; presents the "recent hits" page.
statistics_settings_form in modules/statistics/statistics.admin.inc
Form builder; Configure access logging.
statistics_token_info in modules/statistics/statistics.tokens.inc
Implement hook_token_info().
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_form_system_logging_settings_alter in modules/syslog/syslog.module
Implement hook_form_FORM_ID_alter().
syslog_help in modules/syslog/syslog.module
Implement hook_help().
system_actions_configure in modules/system/system.admin.inc
Menu callback; Creates the form for configuration of a single action.
system_actions_configure_submit in modules/system/system.admin.inc
Process system_actions_configure() form submissions.
system_actions_delete_form in modules/system/system.admin.inc
Create the form for confirmation of deleting an action.
system_actions_delete_form_submit in modules/system/system.admin.inc
Process system_actions_delete form submissions.
system_actions_manage in modules/system/system.admin.inc
Menu callback; Displays an overview of available and configured actions.
system_actions_manage_form in modules/system/system.admin.inc
Define the form for the actions overview page.
system_action_delete_orphans_post in modules/system/system.admin.inc
Post-deletion operations for deleting action orphans.
system_action_info in modules/system/system.module
Implement hook_action_info().
system_add_date_formats_form_submit in modules/system/system.admin.inc
Process new date format string submission.
system_add_date_formats_form_validate in modules/system/system.admin.inc
Validate new date format string submission.
system_add_date_format_type_form in modules/system/system.admin.inc
Add new date type.
system_add_date_format_type_form_submit in modules/system/system.admin.inc
Process system_add_date_format_type form submissions.
system_add_date_format_type_form_validate in modules/system/system.admin.inc
Validate system_add_date_format_type form submissions.
system_admin_by_module in modules/system/system.admin.inc
Menu callback; prints a listing of admin tasks for each installed module.
system_admin_config_page in modules/system/system.admin.inc
Menu callback; Provide the administration overview page.
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/structure/types' needs to have a destination to be valid in the Drupal menu system, but too much...
system_block_info in modules/system/system.module
Implement hook_block_info().
system_block_view in modules/system/system.module
Implement hook_block_view().
system_check_directory in modules/system/system.module
Checks the existence of the directory specified in $form_element. This function is called from the system_settings form to check both core file directories (file_public_path, file_private_path, file_temporary_path).
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_configure_date_formats_form in modules/system/system.admin.inc
Allow users to add additional date formats.
system_date_delete_format_form in modules/system/system.admin.inc
Menu callback; present a form for deleting a date format.
system_date_delete_format_form_submit in modules/system/system.admin.inc
Delete a configured date format.
system_date_format_types in modules/system/system.module
Implements hook_date_format_types().
system_date_time_formats in modules/system/system.admin.inc
Displays the date format strings overview page.
system_date_time_settings in modules/system/system.admin.inc
Form builder; Configure the site date and time settings.
system_delete_date_format_type_form in modules/system/system.admin.inc
Menu callback; present a form for deleting a date type.
system_delete_date_format_type_form_submit in modules/system/system.admin.inc
Delete a configured date type.
system_entity_info in modules/system/system.module
Implement hook_entity_info().
system_filetransfer_backends in modules/system/system.module
Implement hook_filetransfer_backends().
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
Implement a configurable Drupal action. Redirect user to a URL.
system_help in modules/system/system.module
Implement hook_help().
system_image_toolkits in modules/system/system.module
Implement hook_image_toolkits().
system_image_toolkit_settings in modules/system/system.admin.inc
Form builder; Configure site image toolkit usage.
system_ip_blocking in modules/system/system.admin.inc
Menu callback. Display blocked IP addresses.
system_ip_blocking_delete in modules/system/system.admin.inc
IP deletion confirm page.
system_ip_blocking_delete_submit in modules/system/system.admin.inc
Process system_ip_blocking_delete form submissions.
system_ip_blocking_form in modules/system/system.admin.inc
Define the form for blocking IP addresses.
system_ip_blocking_form_submit in modules/system/system.admin.inc
system_ip_blocking_form_validate in modules/system/system.admin.inc
system_logging_settings in modules/system/system.admin.inc
Form builder; Configure error reporting settings.
system_main_admin_page in modules/system/system.admin.inc
Menu callback; Provide the administration overview page.
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 required modules.
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_permission in modules/system/system.module
Implement hook_permission().
system_regional_settings in modules/system/system.admin.inc
Form builder; Configure the site regional settings.
system_requirements in modules/system/system.install
Test and report Drupal installation requirements.
system_retrieve_file in modules/system/system.module
Attempts to get a file using drupal_http_request and to store it locally.
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_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_mode in modules/system/system.admin.inc
Form builder; Configure the site's maintenance status.
system_stream_wrappers in modules/system/system.module
Implement hook_stream_wrappers().
system_test_basic_auth_page in modules/simpletest/tests/system_test.module
system_test_init in modules/simpletest/tests/system_test.module
Implement hook_init().
system_test_main_content_fallback in modules/simpletest/tests/system_test.module
Menu callback to test main content fallback().
system_test_modules_disabled in modules/simpletest/tests/system_test.module
Implement hook_modules_disabled().
system_test_modules_enabled in modules/simpletest/tests/system_test.module
Implement hook_modules_enabled().
system_test_modules_installed in modules/simpletest/tests/system_test.module
Implement hook_modules_installed().
system_test_modules_uninstalled in modules/simpletest/tests/system_test.module
Implement hook_modules_uninstalled().
system_test_set_header in modules/simpletest/tests/system_test.module
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_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_time_zones in modules/system/system.module
Generate an array of time zones and their local time&date.
system_token_info in modules/system/system.tokens.inc
Implement hook_token_info().
system_updater_info in modules/system/system.module
Implement hook_updater_info().
system_update_7003 in modules/system/system.install
Update {blocked_ips} with valid IP addresses from {access}.
system_update_7007 in modules/system/system.install
Convert to new method of storing permissions.
system_update_7033 in modules/system/system.install
Move CACHE_AGGRESSIVE to CACHE_NORMAL.
system_user_login in modules/system/system.module
Implement hook_user_login().
system_user_timezone in modules/system/system.module
Add the time zone field to the user edit and register forms.
tablesort_header in includes/tablesort.inc
Format a column header.
taxonomy_entity_info in modules/taxonomy/taxonomy.module
Implement hook_entity_info().
taxonomy_field_build_modes in modules/taxonomy/taxonomy.module
Implement hook_field_build_modes();
taxonomy_field_formatter_info in modules/taxonomy/taxonomy.module
Implement hook_field_formatter_info().
taxonomy_field_info in modules/taxonomy/taxonomy.module
Implement hook_field_info().
taxonomy_field_settings_form in modules/taxonomy/taxonomy.module
Implement hook_field_settings_form().
taxonomy_field_validate in modules/taxonomy/taxonomy.module
Implement hook_field_validate().
taxonomy_field_widget_info in modules/taxonomy/taxonomy.module
Implement hook_field_widget_info().
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 form.
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_form_vocabulary_validate in modules/taxonomy/taxonomy.admin.inc
Validation handler for the vocabulary form.
taxonomy_help in modules/taxonomy/taxonomy.module
Implement hook_help().
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_permission in modules/taxonomy/taxonomy.module
Implement hook_permission().
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_test_form_alter in modules/simpletest/tests/taxonomy_test.module
Implement hook_form_alter().
taxonomy_token_info in modules/taxonomy/taxonomy.tokens.inc
Implement hook_token_info().
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 resetting 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_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_username in includes/theme.inc
Preprocess variables for theme_username().
template_preprocess_user_picture in modules/user/user.module
Process variables for user-picture.tpl.php.
text_field_formatter_info in modules/field/modules/text/text.module
Implement hook_field_formatter_info().
text_field_info in modules/field/modules/text/text.module
Implement hook_field_info().
text_field_instance_settings_form in modules/field/modules/text/text.module
Implement hook_field_instance_settings_form().
text_field_settings_form in modules/field/modules/text/text.module
Implement hook_field_settings_form().
text_field_validate in modules/field/modules/text/text.module
Implement hook_field_validate().
text_field_widget_info in modules/field/modules/text/text.module
Implement hook_field_widget_info().
text_field_widget_settings_form in modules/field/modules/text/text.module
Implement hook_field_widget_settings_form().
text_textarea_with_summary_process in modules/field/modules/text/text.module
Process an individual element.
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_authorize_message in includes/theme.maintenance.inc
Render a single log message from the authorize.php batch operation.
theme_book_admin_table in modules/book/book.admin.inc
Theme function for the book administration page form.
theme_breadcrumb in includes/theme.inc
Return a themed breadcrumb trail.
theme_comment_block in modules/comment/comment.module
Returns a formatted list of recent comments to be displayed in the comment block.
theme_comment_post_forbidden in modules/comment/comment.module
Theme a "you can't post comments" notice.
theme_dashboard_disabled_blocks in modules/dashboard/dashboard.module
Theme a set of disabled blocks, for display in dashboard customization mode.
theme_feed_icon in includes/theme.inc
Return code that emits an feed icon.
theme_field_formatter_file_table in modules/file/file.field.inc
Theme function for the 'table' formatter.
theme_field_multiple_value_form in modules/field/field.form.inc
Theme an individual form element.
theme_file_upload_help in modules/file/file.field.inc
Generate help text based on upload validators.
theme_file_widget_multiple in modules/file/file.field.inc
Theme a group of file upload widgets.
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 text format administration overview form.
theme_filter_tips in modules/filter/filter.pages.inc
Render HTML for 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_image_resize_summary in modules/image/image.admin.inc
Theme callback for image resize effect summary output.
theme_image_rotate_summary in modules/image/image.admin.inc
Theme callback for image rotate effect summary output.
theme_image_scale_summary in modules/image/image.admin.inc
Theme callback for image scale effect summary output.
theme_image_style_effects in modules/image/image.admin.inc
Theme callback for listing the effects within a specific image style.
theme_image_style_list in modules/image/image.admin.inc
Display the page containing the list of image styles.
theme_image_style_preview in modules/image/image.admin.inc
Theme callback for displaying a preview of an image style.
theme_locale_date_format_form in modules/locale/locale.module
Theme locale date format form.
theme_locale_languages_configure_form in includes/locale.inc
Theme the language configure form.
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_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_nodeapi_example_rating in developer/examples/nodeapi_example.module
A custom theme function.
theme_node_add_list in modules/node/node.pages.inc
Display the list of available node types for node creation.
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_options_none in modules/field/modules/options/options.module
Theme the label for the empty value for options that are not required. The default theme will display N/A for a radio list and blank for a select.
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_scaffolding_example_overview_form in developer/examples/scaffolding_example/scaffolding_example.admin.inc
Theme the drag-and-drop overview form.
theme_shortcut_set_customize in modules/shortcut/shortcut.admin.inc
Theme function for the shortcut set customization form.
theme_shortcut_set_switch in modules/shortcut/shortcut.admin.inc
Theme function for the form that switches shortcut sets.
theme_simpletest_test_table in modules/simpletest/simpletest.pages.inc
Theme the test list generated by simpletest_test_form() into a table.
theme_status_messages in includes/theme.inc
Return a themed set of status and/or error messages. The messages are grouped by type.
theme_system_admin_by_module in modules/system/system.admin.inc
Theme output of the dashboard page.
theme_system_compact_link in modules/system/system.module
Display the link to show or hide inline help descriptions.
theme_system_date_time_settings in modules/system/system.admin.inc
Theme function for date settings form.
theme_system_modules_fieldset 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_tablesort_indicator in includes/theme.inc
Return a themed sort icon.
theme_task_list in includes/theme.maintenance.inc
Return a themed list of maintenance tasks to perform.
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
Displays actions assigned to this hook in a table.
theme_update_last_check in modules/update/update.module
Render the HTML to display the last time we checked for update data.
theme_update_report in modules/update/update.report.inc
Theme project status report.
theme_update_status_label in modules/update/update.report.inc
Generate the HTML for the label to display for a project's update status.
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_user_admin_new_role in modules/user/user.admin.inc
Theme the new-role form.
theme_user_admin_permissions 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.
toolbar_build in modules/toolbar/toolbar.module
Build the admin menu as a structured array ready for drupal_render().
toolbar_permission in modules/toolbar/toolbar.module
Implementation of hook_permission().
tracker_cron in modules/tracker/tracker.module
Implement hook_cron().
tracker_help in modules/tracker/tracker.module
Implement 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
Implement hook_form_alter().
translation_form_node_type_form_alter in modules/translation/translation.module
Implement hook_form_FORM_ID_alter().
translation_help in modules/translation/translation.module
Implement hook_help().
translation_node_overview in modules/translation/translation.pages.inc
Overview page for a node's translations.
translation_node_prepare in modules/translation/translation.module
Implement hook_node_prepare().
translation_node_validate in modules/translation/translation.module
Implement hook_node_validate().
translation_permission in modules/translation/translation.module
Implement hook_permission().
trigger_assign_form in modules/trigger/trigger.admin.inc
Returns the form for assigning an action to a trigger.
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_example_form in developer/examples/trigger_example.module
A form to help fire our triggers.
trigger_example_form_submit in developer/examples/trigger_example.module
trigger_example_help in developer/examples/trigger_example.module
Implementation of hook_help().
trigger_example_hook_info in developer/examples/trigger_example.module
Implementation of hook_hook_info().
trigger_example_menu in developer/examples/trigger_example.module
Implementation of hook_menu().
trigger_help in modules/trigger/trigger.module
Implement hook_help().
trigger_test_action_info in modules/trigger/tests/trigger_test.module
Implementation of hook_action_info().
trigger_test_trigger_info in modules/trigger/tests/trigger_test.module
Implements hook_trigger_info().
trigger_trigger_info in modules/trigger/trigger.module
Implement hook_trigger_info().
trigger_unassign in modules/trigger/trigger.admin.inc
Confirm removal of an assigned action.
trigger_unassign_submit in modules/trigger/trigger.admin.inc
Submit callback for trigger_unassign() form.
update_authorize_batch_copy_project in modules/update/update.authorize.inc
Copy a project to its proper place when authorized with elevated privileges.
update_authorize_install_batch_finished in modules/update/update.authorize.inc
Batch callback for when the authorized install batch is finished.
update_authorize_run_install in modules/update/update.authorize.inc
Callback invoked by authorize.php to install a new project.
update_authorize_run_update in modules/update/update.authorize.inc
Callback invoked by authorize.php to update existing projects.
update_authorize_update_batch_finished in modules/update/update.authorize.inc
Batch callback for when the authorized update batch is finished.
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_fetch_data_batch in modules/update/update.fetch.inc
Process a step in the batch for fetching available update data.
update_fetch_data_finished in modules/update/update.fetch.inc
Batch API callback when all fetch tasks have been completed.
update_help in modules/update/update.module
Implement hook_help().
update_mail in modules/update/update.module
Implement hook_mail().
update_manager_archive_extract in modules/update/update.manager.inc
Unpack a downloaded archive file.
update_manager_archive_verify in modules/update/update.manager.inc
Verify an archive after it has been downloaded and extracted.
update_manager_batch_project_get in modules/update/update.manager.inc
Batch operation: download, unpack, and verify a project.
update_manager_confirm_update_form in modules/update/update.manager.inc
Build the form to confirm that an update should proceed (after downloading).
update_manager_download_batch_finished in modules/update/update.manager.inc
Batch callback invoked when the download batch is completed.
update_manager_install_form in modules/update/update.manager.inc
Build the form for the update manager page to install new projects.
update_manager_install_form_submit in modules/update/update.manager.inc
Handle form submission when installing new projects via the update manager.
update_manager_install_form_validate in modules/update/update.manager.inc
Validate the form for installing a new project via the update manager.
update_manager_update_form in modules/update/update.manager.inc
Build the form for the update manager page to update existing projects.
update_manager_update_form_submit in modules/update/update.manager.inc
Submit function for the main update form.
update_manager_update_form_validate in modules/update/update.manager.inc
Validation callback to ensure that at least one project is selected.
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
Implement hook_requirements().
update_settings in modules/update/update.settings.inc
Form builder for the update settings tab.
update_settings_validate in modules/update/update.settings.inc
Validation callback for the settings form.
update_test_menu in modules/update/tests/update_test.module
Implement hook_menu().
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
Implement hook_help().
upload_js in modules/upload/upload.module
Menu-callback for JavaScript-based uploads.
upload_node_links in modules/upload/upload.module
Inject links into $node for attachments.
upload_permission in modules/upload/upload.module
Implement hook_permission().
upload_token_info in modules/upload/upload.tokens.inc
Implement hook_token_info().
user_account_form in modules/user/user.module
Helper function to add default user account fields to user registration and edit form.
user_account_form_validate in modules/user/user.module
Form validation handler for user_account_form().
user_action_info in modules/user/user.module
Implement hook_action_info().
user_admin in modules/user/user.admin.inc
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_permissions in modules/user/user.admin.inc
Menu callback: administer permissions.
user_admin_permissions_submit in modules/user/user.admin.inc
Save permissions selected on the administer permissions page.
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_block_configure in modules/user/user.module
Implement hook_block_configure().
user_block_info in modules/user/user.module
Implement hook_block_info().
user_block_view in modules/user/user.module
Implement hook_block_view().
user_cancel in modules/user/user.module
Cancel a user account.
user_cancel_confirm in modules/user/user.pages.inc
Menu callback; Cancel a user account via e-mail confirmation link.
user_cancel_confirm_form in modules/user/user.pages.inc
Form builder; confirm form for cancelling user account.
user_cancel_confirm_form_submit in modules/user/user.pages.inc
Submit handler for the account cancellation confirm form.
user_cancel_methods in modules/user/user.pages.inc
Helper function to return available account cancellation methods.
user_entity_info in modules/user/user.module
Implement hook_entity_info().
user_external_login_register in modules/user/user.module
Helper function for authentication modules. Either logs in or registers the current user, based on username. Either way, the global $user object is populated and login tasks are performed.
user_field_build_modes in modules/user/user.module
Implement hook_field_build_modes().
user_field_extra_fields in modules/user/user.module
Implement hook_field_extra_fields().
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
Implement hook_help().
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
The final validation handler on the login form.
user_login_name_validate in modules/user/user.module
A FAPI validate handler. Sets an error if supplied username has been blocked.
user_multiple_cancel_confirm in modules/user/user.module
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_permission in modules/user/user.module
Implement hook_permission().
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_register_form 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_tokens in modules/user/user.tokens.inc
Implement hook_tokens().
user_token_info in modules/user/user.tokens.inc
Implement hook_token_info().
user_update_7000 in modules/user/user.install
Increase the length of the password field to accommodate better hashes.
user_update_7002 in modules/user/user.install
Convert user time zones from time zone offsets to time zone names.
user_update_7004 in modules/user/user.install
Add the user's pictures to the {file} table and make them managed files.
user_user_categories in modules/user/user.module
Implement hook_user_categories().
user_user_operations in modules/user/user.module
Implement hook_user_operations().
user_user_view in modules/user/user.module
Implement hook_user_view().
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
Severity levels, as defined in RFC 3164: http://www.ietf.org/rfc/rfc3164.txt.
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
_aggregator_characters in modules/aggregator/aggregator.processor.inc
Helper function for teaser length choices.
_batch_do in includes/batch.inc
Do one pass of execution in JavaScript-mode and return progress to the browser.
_batch_page in includes/batch.inc
State-based dispatcher for the batch processing page.
_block_rehash in modules/block/block.module
Update the 'block' DB table with the blocks currently exported by modules.
_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_get_modes in modules/comment/comment.module
Return an array of viewing modes for comment listings.
_dashboard_get_default_string in modules/dashboard/dashboard.module
Central storage for strings.
_dblog_format_message in modules/dblog/dblog.admin.inc
Formats a log message for display.
_drupal_log_error in includes/common.inc
Log a PHP error or exception, display an error page in fatal cases.
_element_validate_integer in modules/field_ui/field_ui.admin.inc
Helper form element validator: integer.
_element_validate_integer_positive in modules/field_ui/field_ui.admin.inc
Helper form element validator: integer > 0.
_element_validate_number in modules/field_ui/field_ui.admin.inc
Helper form element validator: number.
_field_ui_field_overview_form_validate_add_existing in modules/field_ui/field_ui.admin.inc
Helper function for field_ui_field_overview_form_validate.
_field_ui_field_overview_form_validate_add_new in modules/field_ui/field_ui.admin.inc
Helper function for field_ui_field_overview_form_validate.
_file_generic_settings_extensions in modules/file/file.field.inc
Element validate callback for the allowed file extensions field.
_file_generic_settings_file_directory_validate in modules/file/file.field.inc
Element validate callback for the file destination field.
_file_generic_settings_max_filesize in modules/file/file.field.inc
Element validate callback for the maximum upload size field.
_file_test_form in modules/simpletest/tests/file_test.module
Form to test file uploads.
_file_test_form_submit in modules/simpletest/tests/file_test.module
Process the upload.
_filter_autop_tips in modules/filter/filter.module
Filter tips callback for auto-paragraph filter.
_filter_html_escape_tips in modules/filter/filter.module
Filter tips callback for HTML escaping filter.
_filter_html_settings in modules/filter/filter.module
Settings callback for the HTML filter.
_filter_html_tips in modules/filter/filter.module
Filter tips callback for HTML filter.
_filter_url_settings in modules/filter/filter.module
Settings callback for URL filter.
_filter_url_tips in modules/filter/filter.module
Filter tips callback for URL filter.
_format_date_callback in includes/common.inc
Callback function for preg_replace_callback().
_forum_parent_select in modules/forum/forum.admin.inc
Returns a select box for available parent terms
_image_field_resolution_validate in modules/image/image.field.inc
Element validate function for resolution fields.
_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_languages_configure_form_language_table in includes/locale.inc
Helper function to build a language provider table.
_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_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 in maintenance mode.
_node_access_rebuild_batch_finished in modules/node/node.module
Post-processing for node_access_rebuild_batch.
_node_characters in modules/node/content_types.inc
Helper function for teaser length choices.
_node_mass_update_batch_finished in modules/node/node.admin.inc
Node Mass Update Batch 'finished' callback.
_php_filter_tips in modules/php/php.module
Tips callback for php filter.
_profile_field_types in modules/profile/profile.module
_profile_form_explanation in modules/profile/profile.module
_scaffolding_example_record_links in developer/examples/scaffolding_example/scaffolding_example.admin.inc
Build the edit and delete links for a single record.
_shortcut_link_form_elements in modules/shortcut/shortcut.admin.inc
Helper function for building a form for adding or editing shortcut links.
_simpletest_batch_finished in modules/simpletest/simpletest.module
_simpletest_batch_operation in modules/simpletest/simpletest.module
Batch operation callback.
_simpletest_format_summary_line in modules/simpletest/simpletest.module
_system_filetransfer_backend_form_common in modules/system/system.module
Helper function because SSH and FTP backends share the same elements
_system_modules_build_row in modules/system/system.admin.inc
Build a table row for the system modules page.
_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_requirement_check in modules/update/update.module
Private helper method to fill in the requirements array.
_upload_form in modules/upload/upload.module
_user_cancel in modules/user/user.module
Last batch processing step for cancelling a user account.
_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
Performs one or more XML-RPC request(s).

Code

includes/common.inc, line 1498

<?php
function t($string, array $args = array(), array $options = array()) {
  global $language_interface;
  static $custom_strings;

  // Merge in default.
  if (empty($options['langcode'])) {
    $options['langcode'] = isset($language_interface->language) ? $language_interface->language : 'en';
  }
  if (empty($options['context'])) {
    $options['context'] = '';
  }

  // 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[$options['langcode']])) {
    $custom_strings[$options['langcode']] = variable_get('locale_custom_strings_' . $options['langcode'], array());
  }
  // Custom strings work for English too, even if locale module is disabled.
  if (isset($custom_strings[$options['langcode']][$options['context']][$string])) {
    $string = $custom_strings[$options['langcode']][$options['context']][$string];
  }
  // Translate with locale module if enabled.
  // We don't use function_exists() here, because it breaks the testing
  // framework if the locale module is enabled in the parent site (we cannot
  // unload functions in PHP).
  elseif (function_exists('locale') && $options['langcode'] != 'en') {
    $string = locale($string, $options['context'], $options['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', array('text' => $value));
          break;

        case '!':
          // Pass-through.
      }
    }
    return strtr($string, $args);
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.