Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
drupal_uninstall_schema includes/common.inc Removes all tables defined in a module's hook_schema(). 1
drupal_unlink includes/file.inc Deletes a file. 18
drupal_unpack includes/bootstrap.inc Unserializes and appends elements from a serialized string.
drupal_validate_form includes/form.inc Validates user-submitted form data in the $form_state array. 1
drupal_validate_utf8 includes/bootstrap.inc Checks whether a string is valid UTF-8. 2
drupal_valid_http_host includes/bootstrap.inc Validates that a hostname (for example $_SERVER['HTTP_HOST']) is safe. 2
drupal_valid_path includes/path.inc Checks a path exists and the current user has access to it. 4
drupal_valid_test_ua includes/bootstrap.inc Returns the test prefix if this is an internal request from SimpleTest. 9
drupal_valid_token includes/common.inc Validates a token based on $value, the user session, and the private key. 17
drupal_var_export includes/utility.inc Drupal-friendly var_export().
drupal_verify_install_file includes/install.inc Verifies the state of the specified file. 4
drupal_verify_profile includes/install.inc Verifies an installation profile for installation. 1
drupal_wrap_mail includes/mail.inc Performs format=flowed soft wrapping for mail (RFC 3676). 5
drupal_write_record includes/common.inc Saves (inserts or updates) a record to the database based upon the schema. 33
drupal_xml_parser_create includes/unicode.inc Prepares a new XML parser. 2
element_child includes/common.inc Checks if the key is a child. 2 1
element_children includes/common.inc Identifies the children of an element array, optionally sorted by weight. 69
element_get_visible_children includes/common.inc Returns the visible children of an element.
element_info includes/common.inc Retrieves the default properties for the defined element type. 11
element_info_property includes/common.inc Retrieves a single property for the defined element type. 1
element_properties includes/common.inc Gets properties of a structured array element (keys beginning with '#'). 1
element_property includes/common.inc Checks if the key is a property. 1
element_set_attributes includes/common.inc Sets HTML attributes based on element properties. 12
element_sort includes/common.inc Function used by uasort to sort structured arrays by weight. 3
element_sort_by_title includes/common.inc Array sorting callback; sorts elements by title. 2
element_validate_integer includes/form.inc Form element validation handler for integer elements. 1 2
element_validate_integer_positive includes/form.inc Form element validation handler for integer elements that must be positive. 1 9
element_validate_number includes/form.inc Form element validation handler for number elements. 1 1
entity_cache_test_dependency_entity_info modules/simpletest/tests/entity_cache_test_dependency.module Implements hook_entity_info().
entity_cache_test_watchdog modules/simpletest/tests/entity_cache_test.module Implements hook_watchdog().
entity_create_stub_entity includes/common.inc Helper function to assemble an object structure with initial ids. 4
entity_crud_hook_test_comment_delete modules/simpletest/tests/entity_crud_hook_test.module Implements hook_comment_delete().
entity_crud_hook_test_comment_insert modules/simpletest/tests/entity_crud_hook_test.module Implements hook_comment_insert().
entity_crud_hook_test_comment_load modules/simpletest/tests/entity_crud_hook_test.module Implements hook_comment_load().
entity_crud_hook_test_comment_presave modules/simpletest/tests/entity_crud_hook_test.module Implements hook_comment_presave().
entity_crud_hook_test_comment_update modules/simpletest/tests/entity_crud_hook_test.module Implements hook_comment_update().
entity_crud_hook_test_entity_delete modules/simpletest/tests/entity_crud_hook_test.module Implements hook_entity_delete().
entity_crud_hook_test_entity_insert modules/simpletest/tests/entity_crud_hook_test.module Implements hook_entity_insert().
entity_crud_hook_test_entity_load modules/simpletest/tests/entity_crud_hook_test.module Implements hook_entity_load().
entity_crud_hook_test_entity_presave modules/simpletest/tests/entity_crud_hook_test.module Implements hook_entity_presave().
entity_crud_hook_test_entity_update modules/simpletest/tests/entity_crud_hook_test.module Implements hook_entity_update().
entity_crud_hook_test_file_delete modules/simpletest/tests/entity_crud_hook_test.module Implements hook_file_delete().
entity_crud_hook_test_file_insert modules/simpletest/tests/entity_crud_hook_test.module Implements hook_file_insert().
entity_crud_hook_test_file_load modules/simpletest/tests/entity_crud_hook_test.module Implements hook_file_load().
entity_crud_hook_test_file_presave modules/simpletest/tests/entity_crud_hook_test.module Implements hook_file_presave().
entity_crud_hook_test_file_update modules/simpletest/tests/entity_crud_hook_test.module Implements hook_file_update().
entity_crud_hook_test_node_delete modules/simpletest/tests/entity_crud_hook_test.module Implements hook_node_delete().
entity_crud_hook_test_node_insert modules/simpletest/tests/entity_crud_hook_test.module Implements hook_node_insert().
entity_crud_hook_test_node_load modules/simpletest/tests/entity_crud_hook_test.module Implements hook_node_load().
entity_crud_hook_test_node_presave modules/simpletest/tests/entity_crud_hook_test.module Implements hook_node_presave().

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.