Functions

NameLocationDescription
cache_clear_allincludes/cache-install.inc
cache_getincludes/cache-install.inc
cache_setincludes/cache-install.inc
db_add_fieldincludes/database.pgsql.incAdd a new field to a table.
db_add_indexincludes/database.pgsql.incAdd an index.
db_add_primary_keyincludes/database.pgsql.incAdd a primary key.
db_add_unique_keyincludes/database.pgsql.incAdd a unique key.
db_affected_rowsincludes/database.pgsql.incDetermine the number of rows changed by the preceding query.
db_change_fieldincludes/database.pgsql.incChange a field definition.
db_check_setupincludes/database.pgsql.incVerify if the database is set up correctly.
db_column_existsincludes/database.pgsql.incCheck if a column exists in the given table.
db_connectincludes/database.pgsql.incInitialize a database connection.
db_create_table_sqlincludes/database.pgsql.incGenerate SQL to create a new table from a Drupal schema definition.
db_decode_blobincludes/database.pgsql.incReturns text from a Binary Large OBject value. In case of PostgreSQL decodes data after select from bytea field.
db_drop_fieldincludes/database.pgsql.incDrop a field.
db_drop_indexincludes/database.pgsql.incDrop an index.
db_drop_primary_keyincludes/database.pgsql.incDrop the primary key.
db_drop_tableincludes/database.pgsql.incDrop a table.
db_drop_unique_keyincludes/database.pgsql.incDrop a unique key.
db_encode_blobincludes/database.pgsql.incReturns a properly formatted Binary Large OBject value. In case of PostgreSQL encodes data for insert into bytea field.
db_errorincludes/database.pgsql.incDetermine whether the previous query caused an error.
db_escape_stringincludes/database.pgsql.incPrepare user input for use in a database query, preventing SQL injection attacks. Note: This function requires PostgreSQL 7.2 or later.
db_fetch_arrayincludes/database.pgsql.incFetch one result row from the previous query as an array.
db_fetch_objectincludes/database.pgsql.incFetch one result row from the previous query as an object.
db_field_set_defaultincludes/database.pgsql.incSet the default value for a field.
db_field_set_no_defaultincludes/database.pgsql.incSet a field to have no default value.
db_last_insert_idincludes/database.pgsql.incReturns the last insert id. This function is thread safe.
db_lock_tableincludes/database.pgsql.incLock a table. This function automatically starts a transaction.
db_queryincludes/database.pgsql.incRuns a basic query in the active database.
db_query_rangeincludes/database.pgsql.incRuns a limited-range query in the active database.
db_query_temporaryincludes/database.pgsql.incRuns a SELECT query and stores its results in a temporary table.
db_rename_tableincludes/database.pgsql.incRename a table.
db_resultincludes/database.pgsql.incReturn an individual result field from the previous query.
db_status_reportincludes/database.pgsql.incReport database status.
db_table_existsincludes/database.pgsql.incCheck if a table exists.
db_type_mapincludes/database.pgsql.incThis maps a generic data type in combination with its data size to the engine-specific data type.
db_unlock_tablesincludes/database.pgsql.incUnlock all locked tables. This function automatically commits a transaction.
db_versionincludes/database.pgsql.incReturns the version of the database server currently in use.
drupal_discover_templateincludes/theme.incChoose which template file to actually render. These are all suggested templates from themes and modules. Theming implementations can occur on multiple levels. All paths are checked to account for this.
drupal_find_theme_functionsincludes/theme.incFind overridden theme functions. Called by themes and/or theme engines to easily discover theme functions.
drupal_find_theme_templatesincludes/theme.incFind overridden theme templates. Called by themes and/or theme engines to easily discover templates.
drupal_help_argincludes/menu.incGenerates elements for the $arg array in the help hook.
drupal_rebuild_theme_registryincludes/theme.incForce the system to rebuild the theme registry; this should be called when modules are added to the system, or when a dynamic system needs to add more theme hooks.
drupal_test_pgsqlincludes/install.pgsql.incCheck if we can connect to PostgreSQL.
image_cropincludes/image.incCrop an image to the rectangle specified by the given rectangle.
image_gd_check_settingsincludes/image.gd.incVerify GD2 settings (that the right version is actually installed).
image_gd_closeincludes/image.gd.incGD helper to write an image resource to a destination file.
image_gd_cropincludes/image.gd.incCrop an image using the GD toolkit.
image_gd_infoincludes/image.gd.incRetrieve information about the toolkit.
image_gd_openincludes/image.gd.incGD helper function to create an image resource from a file.