db_query

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/database.mysql-common.inc, строка 32

Версии
5 – 6
db_query($query)

Выполняет запрос к активной базе данных.

Пользовательские аргументы к SQL-запросу должны передаваться отдельными параметрами к функции, чтобы быть правильно экранированными, дабы избежать SQL-инъекций.

Правильные шаблоны для подстановки: '%s', '%d', '%f', '%b' (двоичные данные, не следует помещать в кавычки '') и '%%'.

  • %s для strings
  • %d для integer
  • %f для float
  • %b для двоичных данных
  • %% для %

Примечание: использование этого синтаксиса приведет к тому, что NULL и FALSE будут превращаться в десятичный 0, а TRUE в десятичную 1.

Параметры

$query Строка, содержащая SQL-запрос.

... Переменное количество аргументов, которые подставляются в запрос по типу printf(). Вместо переменного количества аргументов, можно использовать один массив, содержащий необходимые аргументы.

Возвращаемое значение

Результирующий ресурс запроса или FALSE, если запрос вызвал ошибку.

▾ 403 функции вызывают db_query()

actions_delete in includes/actions.inc
Удаляет действие из базы данных.
actions_do in includes/actions.inc
Выполняет заданный список действий путем выполнения соответствующих коллбэков.
actions_function_lookup in includes/actions.inc
Получая md5 хэш имени функции, возвращает само имя функции.
actions_get_all_actions in includes/actions.inc
Возвращает все записи действий из базы данных.
actions_load in includes/actions.inc
Возвращает одно действие из базы данных.
actions_save in includes/actions.inc
Сохраняет действие и значения его заданных параметров в базу.
actions_synchronize in includes/actions.inc
Синхронизирует действия, переданные из модуля.
aggregator_block in modules/aggregator/aggregator.module
Реализация hook_block().
aggregator_categorize_items in modules/aggregator/aggregator.pages.inc
Form builder; build the page list form.
aggregator_categorize_items_submit in modules/aggregator/aggregator.pages.inc
Process aggregator_categorize_items form submissions.
aggregator_category_load in modules/aggregator/aggregator.module
Загружает категорию агрегатора.
aggregator_cron in modules/aggregator/aggregator.module
Реализация hook_cron().
aggregator_feed_items_load in modules/aggregator/aggregator.pages.inc
Load feed items by passing a SQL query.
aggregator_feed_load in modules/aggregator/aggregator.module
Загружает фид.
категория формы накопителя утверждает in modules/aggregator/aggregator.admin.inc
Утвердите подчинение формы подачи формы накопителя
aggregator_form_feed in modules/aggregator/aggregator.admin.inc
Конструктор формы; генерирует форму добавления/редактирования источников фида.
aggregator_form_feed_validate in modules/aggregator/aggregator.admin.inc
Validate aggregator_form_feed form submissions.
aggregator_page_categories in modules/aggregator/aggregator.pages.inc
Коллбэк меню; показывает все категории, используемые аггрегатором.
aggregator_page_opml in modules/aggregator/aggregator.pages.inc
Коллбэк меню; генерирует представление OPML из всех фидов.
aggregator_page_rss in modules/aggregator/aggregator.pages.inc
Коллбэк меню. Генерирует фид из материалов аггергатора или категорий в формате RSS 0.92.
aggregator_page_sources in modules/aggregator/aggregator.pages.inc
Коллбэк меню; показывает все фиды, используемые аггрегатором.
aggregator_parse_feed in modules/aggregator/aggregator.module
Parse a feed and store its items.
aggregator_refresh in modules/aggregator/aggregator.module
Проверяет фид новостей на наличие новых пунктов.
aggregator_remove in modules/aggregator/aggregator.module
Удаляет все элементы из фида.
aggregator_save_category in modules/aggregator/aggregator.module
Добавление/редактирование/удаление категорий агрегатора.
aggregator_save_feed in modules/aggregator/aggregator.module
Добавление/редактирование/удаление фидов аггрегатора.
aggregator_save_item in modules/aggregator/aggregator.module
Добавление/редактирование/удаление элемента аггрегатора.
aggregator_view in modules/aggregator/aggregator.admin.inc
Отображает страницу администрирования агрегатора.
batch_example_op_2 in developer/examples/batch_example.module
Batch operation for batch 2 : load all nodes, 5 by five This is a multipart operation, using the
batch_process in includes/form.inc
Process the batch.
block_add_block_form_submit in modules/block/block.admin.inc
Сохраняет новый блок, созданный пользователем.
block_add_block_form_validate in modules/block/block.admin.inc
block_admin_configure in modules/block/block.admin.inc
Коллбэк меню. Отображает форму настройки блока.
block_admin_configure_submit in modules/block/block.admin.inc
block_admin_configure_validate in modules/block/block.admin.inc
block_admin_display_form_submit in modules/block/block.admin.inc
Process main blocks administration form submission.
block_block in modules/block/block.module
Реализация hook_block().
block_box_delete_submit in modules/block/block.admin.inc
Удаляет блок, созданный пользователем.
block_box_get in modules/block/block.module
block_box_save in modules/block/block.module
block_list in modules/block/block.module
Возвращает все блоки в заданном регионе для текущего пользователя.
block_user in modules/block/block.module
Реализация hook_user().
blogapi_mt_validate_terms in modules/blogapi/blogapi.module
Blogging API helper - find allowed taxonomy terms for a node type.
blog_form in modules/blog/blog.module
Реализация hook_form().
book_block in modules/book/book.module
Реализация hook_block().
book_get_books in modules/book/book.module
Возвращает массив всех книг.
book_link_load in modules/book/book.module
Like menu_link_load(), but adds additional data from the {book} table.
book_menu_subtree_data in modules/book/book.module
Get the data representing a subtree of the book hierarchy.
book_nodeapi in modules/book/book.module
Implementation of hook_nodeapi().
book_remove_form_submit in modules/book/book.pages.inc
Confirm form submit function to remove a node from the book. See alsobook_remove_form()
book_uninstall in modules/book/book.install
Реализация hook_uninstall().
book_update_6000 in modules/book/book.install
Drupal 5.x to 6.x update.
book_update_bid in modules/book/book.module
Update the bid for a page and its children when it is moved to a new book.
comment_admin_overview_submit in modules/comment/comment.admin.inc
Process comment_admin_overview form submissions.
comment_delete in modules/comment/comment.admin.inc
Коллбек меню; Подтверждение удаления комментария.
comment_edit in modules/comment/comment.pages.inc
Конструктор формы; генерирует форму редактирования комментария.
comment_enable in modules/comment/comment.install
Реализация hook_enable().
comment_form_add_preview in modules/comment/comment.module
Конструктор формы; Формирует и проверяет форму предпросмотра комментария.
comment_multiple_delete_confirm in modules/comment/comment.admin.inc
List the selected comments and verify that the admin really wants to delete them.
comment_new_page_count in modules/comment/comment.module
Вычисляет номер страницы для первого нового комментария.
comment_nodeapi in modules/comment/comment.module
Реализация hook_nodeapi().
comment_num_all in modules/comment/comment.module
Возвращает число комментариев к ноде.
comment_num_new in modules/comment/comment.module
Получает число новых комментариев для текущего пользователя и указанной ноды.
comment_num_replies in modules/comment/comment.module
Возвращает количество ответов на комментарий.
comment_render in modules/comment/comment.module
Отображает комментарии.
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: replies to comments replies to nodes attempts to reply to nodes that can no longer accept comments respecting access...
comment_save in modules/comment/comment.module
Сохраняет новый или измененный комментарий.
comment_unpublish_action in modules/comment/comment.module
Действие; Снимает комментарий с публикации.
comment_unpublish_by_keyword_action in modules/comment/comment.module
Implementation of a configurable Drupal action. Unpublish a comment if it contains a certain string.
comment_update_1 in modules/comment/comment.install
Changed node_comment_statistics to use node->changed to avoid future timestamps.
comment_user in modules/comment/comment.module
Реализация hook_user().
comment_validate in modules/comment/comment.module
Проверка данных комментария.
contact_admin_categories in modules/contact/contact.admin.inc
Categories/list tab.
contact_admin_delete_submit in modules/contact/contact.admin.inc
Process category delete form submission.
contact_admin_edit_submit in modules/contact/contact.admin.inc
Process the contact category edit page form submission.
contact_load in modules/contact/contact.module
Загружает данные категории контактов.
contact_mail_page in modules/contact/contact.pages.inc
dblog_cron in modules/dblog/dblog.module
Реализация hook_cron().
dblog_event in modules/dblog/dblog.admin.inc
Коллбэк меню; отображает подробности записи журнала системы.
dblog_user in modules/dblog/dblog.module
Реализация hook_user().
dblog_watchdog in modules/dblog/dblog.module
db_add_field in includes/database.mysql-common.inc
Добавляет новое поле в таблицу.
db_check_setup in includes/database.pgsql.inc
Проверяет, корректно ли настроена база данных.
db_column_exists in includes/database.mysql.inc
Проверяет наличие колонки в данной таблице.
db_last_insert_id in includes/database.mysql-common.inc
Возвращает id последнего вставленного ряда. Можно безопасно использовать в thread safe режиме.
db_lock_table in includes/database.mysql.inc
Блокирует таблицу. Эта функция автоматически начинает транзакцию БД.
db_table_exists in includes/database.mysql.inc
Проверяет, существует ли таблица.
db_unlock_tables in includes/database.mysql.inc
Разблокирует все заблокированные таблицы. Эта функция автоматически завершает транзакцию.
drupal_get_filename in includes/bootstrap.inc
Возвращает и опционально устанавливает имя файла системного элемента (модуль, тема, и т.д.). Имя файла, который существует, кеширован или получен из базы данных, возвращается если файл существует.
drupal_get_installed_schema_version in includes/install.inc
Returns the currently installed schema version for a module.
drupal_install_system in includes/install.inc
Callback to install the system module.
drupal_lookup_path in includes/path.inc
Для указанного синонима пути возвращается системный URL Drupal, если он существует. Для указанного системного URL Drupal возвращается синоним пути, если он существует. В остальных случаях возвращается FALSE.
drupal_set_installed_schema_version in includes/install.inc
Update the installed version information for a module.
drupal_uninstall_module in includes/install.inc
Calls the uninstall function and updates the system table for a given module.
drupal_write_record in includes/common.inc
Сохраняет запись в базу данных согласно схеме.
file_set_status in includes/file.inc
Устанавливает состояние файла.
file_space_used in includes/file.inc
Определяет общее дисковое пространство используемое пользователем или всей системой
filter_admin_delete in modules/filter/filter.admin.inc
Menu callback; confirm deletion of a format. See alsofilter_admin_delete_submit()
filter_admin_delete_submit in modules/filter/filter.admin.inc
Process filter delete form submission.
filter_admin_format_form_submit in modules/filter/filter.admin.inc
Process filter format form submissions.
filter_admin_format_form_validate in modules/filter/filter.admin.inc
Validate filter format form submissions.
filter_admin_order_submit in modules/filter/filter.admin.inc
Process filter order configuration form submission.
filter_formats in modules/filter/filter.module
Извлекает список форматов ввода.
filter_format_allowcache in modules/filter/filter.module
Check if text in a certain input format is allowed to be cached.
filter_list_format in modules/filter/filter.module
Возвращает список форматов ввода для выбранного формата.
flood_is_allowed in includes/common.inc
Check if the current visitor (hostname/IP) is allowed to proceed with the specified event.
flood_register_event in includes/common.inc
Register an event for the current visitor (hostname/IP) to the flood control mechanism.
forum_get_forums in modules/forum/forum.module
Returns a list of all forums for a given taxonomy id
forum_install in modules/forum/forum.install
Реализация hook_install().
forum_load in modules/forum/forum.module
Implementation of hook_load().
forum_nodeapi in modules/forum/forum.module
Implementation of hook_nodeapi().
forum_taxonomy in modules/forum/forum.module
Implementation of hook_taxonomy().
forum_term_load in modules/forum/forum.module
Загружает термин форума из таксономии.
forum_uninstall in modules/forum/forum.install
Реализация hook_uninstall().
hook_actions_delete in developer/hooks/core.php
Выполняется после удаления действия (action).
hook_cron in developer/hooks/core.php
Выполняет запланированные действия по расписанию.
hook_delete in developer/hooks/node.php
Срабатывает при удалении ноды.
hook_exit in developer/hooks/core.php
Используется для подчистки данных после загрузки страницы.
hook_file_download in developer/hooks/core.php
Контролирует доступ к файлам при приватном способе загрузки. Кроме того, позволяет указывать HTTP заголовки для файлов.
hook_insert in developer/hooks/node.php
Отвечает за вставку ноды.
hook_load in developer/hooks/node.php
Загружает информацию специфичную для типа ноды.
hook_search in developer/hooks/core.php
Определяет пользовательскую функцию поиска.
hook_update in developer/hooks/node.php
Отвечает за обновление ноды.
hook_update_N in developer/hooks/install.php
Производит обновление таблиц БД, необходимое для единичного обновления модуля.
install_verify_drupal in ./install.php
Verify if Drupal is installed.
language_list in includes/bootstrap.inc
Формирует список установленных языков, индексированных по указанному ключу
list_themes in includes/theme.inc
Возвращает список доступных для использования на данный момент тем.
locale in modules/locale/locale.module
Provides interface translation services.
locale_add_language in includes/locale.inc
API добавления языка.
locale_batch_by_component in includes/locale.inc
Подготовка пакетной обработки при инсталяции модулей или включении темы. Она импортирует переводы для недавно добавленных компонентов на всех языках, уже настроенных на сайте.
locale_batch_by_language in includes/locale.inc
Подготовка к пакетному импорту переводов для всех включенных модулей данного языка
locale_install in modules/locale/locale.install
Реализация hook_install().
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_submit in includes/locale.inc
Process the language editing form submission.
locale_languages_edit_form_validate in includes/locale.inc
Validate the language editing form. Reused for custom language addition too.
locale_languages_overview_form_submit in includes/locale.inc
Process language overview form submissions, updating existing languages.
locale_languages_predefined_form_validate in includes/locale.inc
Validate the language addition form.
locale_translate_delete_form_submit in includes/locale.inc
Process string deletion submissions.
locale_translate_delete_page in includes/locale.inc
String deletion confirmation page.
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_overview_screen in includes/locale.inc
Overview screen for translations.
locale_uninstall in modules/locale/locale.install
Реализация hook_uninstall().
locale_update_6000 in modules/locale/locale.install
{locales_meta} table became {languages}.
locale_update_6005 in modules/locale/locale.install
Change language setting variable of content types.
menu_delete_menu_confirm in modules/menu/menu.admin.inc
Build a confirm form for deletion of a custom menu.
menu_delete_menu_confirm_submit in modules/menu/menu.admin.inc
Delete a custom menu and all items in it.
menu_edit_menu_submit in modules/menu/menu.admin.inc
Submit function for adding or editing a custom menu.
menu_edit_menu_validate in modules/menu/menu.admin.inc
Validates the human and machine-readable names when adding or editing a menu.
menu_enable in modules/menu/menu.module
Реализация hook_enable().
menu_get_menus in modules/menu/menu.module
Return an associative array of the custom menus names.
menu_get_names in includes/menu.inc
Строит список названий меню.
menu_install in modules/menu/menu.install
Реализация hook_install().
menu_link_delete in includes/menu.inc
Удаляет один или несколько пунктов меню.
menu_link_load in includes/menu.inc
Возвращает элемент меню по его идентификатору (mlid), с проверкой доступа и переведенным заголовком и описанием. Такой элемент готов к рендерингу и выводу.
menu_link_maintain in includes/menu.inc
Вставляет, обновляет или удаляет uncustomized ссылку меню относящуюся к модулю.
menu_link_save in includes/menu.inc
Сохраняет ссылку меню.
menu_load in modules/menu/menu.module
Загружает данные ветки меню.
menu_local_tasks in includes/menu.inc
Собирает локальные задачи (вкладки) для заданного уровня.
menu_nodeapi in modules/menu/menu.module
Реализация hook_nodeapi().
menu_overview_form in modules/menu/menu.admin.inc
Form for editing an entire menu tree at once.
menu_overview_page in modules/menu/menu.admin.inc
Menu callback which shows an overview page of all the custom menus and their descriptions.
menu_tree_all_data in includes/menu.inc
Получить данные структуры, представляющие название дерева меню.
menu_tree_check_access in includes/menu.inc
Проверяет доступ и выполняет другие динамические операции для каждой ссылки в дереве меню.
menu_tree_page_data in includes/menu.inc
Get the data structure representing a named menu tree, based on the current page.
menu_valid_path in includes/menu.inc
Проверяет путь ссылки создаваемого или редактируемого пункта меню.
module_disable in includes/module.inc
Отключает заданный набор модулей.
module_enable in includes/module.inc
Включает данный список модулей.
module_list in includes/module.inc
Генерирует список всех загруженных модулей. В ходе инициализации (бутстрапа), возвращает только жизненно важные модули. Смотри bootstrap.inc
module_rebuild_cache in includes/module.inc
Обновляет кеш файлов модулей.
multipage_form_example_custom_submit in developer/examples/multipage_form_example.module
nodeapi_example_nodeapi in developer/examples/nodeapi_example.module
Реализация hook_nodeapi().
node_access in modules/node/node.module
Устанавливает, может ли текущий пользователь выполнять заданные действия над определённой нодой.
node_access_example_nodeapi in developer/examples/node_access_example.module
Реализация hook_nodeapi().
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_access_view_all_nodes in modules/node/node.module
Determine whether the user has a global viewing grant for all nodes.
node_access_write_grants in modules/node/node.module
This function will write a list of grants to the database, deleting any pre-existing grants. If a realm is provided, it will only delete grants from that realm, but it will always delete a grant from the 'all' realm. Modules which utilize...
node_admin_nodes in modules/node/node.admin.inc
Form builder: Builds the node administration overview.
node_assign_owner_action in modules/node/node.module
Implementation of a configurable Drupal action. Assigns ownership of a node to a user.
node_assign_owner_action_form in modules/node/node.module
node_assign_owner_action_submit in modules/node/node.module
node_assign_owner_action_validate in modules/node/node.module
node_comment_mode in modules/node/node.module
Retrieve the comment mode for the given node ID (none, read, or read/write).
node_cron in modules/node/node.module
Реализация hook_cron().
node_delete in modules/node/node.module
Удаляет ноду.
node_example_delete in developer/examples/node_example.module
Реализация hook_delete().
node_example_insert in developer/examples/node_example.module
Реализация hook_insert().
node_example_load in developer/examples/node_example.module
Реализация hook_load().
node_example_nodeapi in developer/examples/node_example.module
Реализация hook_nodeapi().
node_example_update in developer/examples/node_example.module
Реализация hook_update().
node_last_changed in modules/node/node.module
node_last_viewed in modules/node/node.module
Retrieves the timestamp at which the current user last viewed the specified node.
node_load in modules/node/node.module
Загружает объект ноды из базы данных.
node_multiple_delete_confirm in modules/node/node.admin.inc
node_revision_delete_confirm_submit in modules/node/node.pages.inc
node_revision_list in modules/node/node.module
Return a list of all the existing revision numbers.
node_save in modules/node/node.module
Сохраняет ноду в базе данных.
node_search in modules/node/node.module
Реализация hook_search().
node_tag_new in modules/node/node.module
Устанавливает время последнего просмотра текущего пользователя для заданной ноды.
node_type_delete in modules/node/node.module
Удаляет тип ноды из БД.
node_type_delete_confirm in modules/node/content_types.inc
Menu callback; delete a single content type.
node_type_save in modules/node/node.module
Сохраняет тип ноды в базе данных.
node_type_update_nodes in modules/node/node.module
Updates all nodes of one type to be of another type.
node_update_index in modules/node/node.module
Реализация hook_update_index().
node_user in modules/node/node.module
Реализация hook_user().
openid_association in modules/openid/openid.module
Attempt to create a shared secret with the OpenID Provider.
openid_user_add_validate in modules/openid/openid.pages.inc
openid_user_delete_form in modules/openid/openid.pages.inc
Present a confirmation form to delete the specified OpenID identity from the system. See alsoopenid_user_delete_form_submit()
openid_user_delete_form_submit in modules/openid/openid.pages.inc
openid_user_identities in modules/openid/openid.pages.inc
Menu callback; Manage OpenID identities for the specified user.
openid_verify_assertion in modules/openid/openid.module
Attempt to verify the response received from the OpenID Provider.
pager_query in includes/pager.inc
Выполняет «постраничный» запрос к базе данных.
path_admin_delete in modules/path/path.module
Post-confirmation; delete an URL alias.
path_admin_form_validate in modules/path/path.admin.inc
Verify that a new URL alias is valid
path_admin_overview in modules/path/path.admin.inc
Return a listing of all defined URL aliases. When filter key passed, perform a standard search on the given key, and return the list of matching URL aliases.
path_form_alter in modules/path/path.module
Реализация hook_form_alter().
path_load in modules/path/path.module
Извлекает специфичный синоним URL из базы данных.
path_nodeapi in modules/path/path.module
Реализация hook_nodeapi().
path_set_alias in modules/path/path.module
Устанавливает синоним для заданного пути Drupal'а, предотвращая повторения.
php_install in modules/php/php.install
Реализация hook_install().
ping_cron in modules/ping/ping.module
Реализация hook_cron().
poll_block in modules/poll/poll.module
Реализация hook_block().
poll_cancel in modules/poll/poll.module
Submit callback for poll_cancel_form
poll_cron in modules/poll/poll.module
Реализация hook_cron().
poll_delete in modules/poll/poll.module
Реализация hook_delete().
poll_insert in modules/poll/poll.module
Implementation of hook_insert().
poll_load in modules/poll/poll.module
Implementation of hook_load().
poll_update in modules/poll/poll.module
Implementation of hook_update().
poll_user in modules/poll/poll.module
Реализация hook_user().
poll_vote in modules/poll/poll.module
Submit handler for processing a vote
profile_admin_overview in modules/profile/profile.admin.inc
Form builder to display a listing of all editable profile fields. See alsoprofile_admin_overview_submit()
profile_admin_overview_submit in modules/profile/profile.admin.inc
Submit handler to update changed profile field weights and categories. See alsoprofile_admin_overview()
profile_autocomplete in modules/profile/profile.pages.inc
Callback to allow autocomplete of profile text fields.
profile_block in modules/profile/profile.module
Реализация hook_block().
profile_browse in modules/profile/profile.pages.inc
Menu callback; display a list of user information.
profile_categories in modules/profile/profile.module
profile_category_access in modules/profile/profile.module
Menu item access callback - check if a user has access to a profile category.
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. See alsoprofile_field_form_validate()
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_load_profile in modules/profile/profile.module
profile_save_profile in modules/profile/profile.module
profile_user in modules/profile/profile.module
Реализация hook_user().
profile_view_profile in modules/profile/profile.module
search_index in modules/search/search.module
Обновляет полнотекстовый поисковый индекс для указанного элемента.
search_nodeapi in modules/search/search.module
Implementation of hook_nodeapi().
search_touch_node in modules/search/search.module
Change a node's changed timestamp to 'now' to force reindexing.
search_update_totals in modules/search/search.module
This function is called on shutdown to ensure that search_total is always up to date (even if cron times out or otherwise fails).
search_wipe in modules/search/search.module
Wipes a part of or the entire search index.
sess_count in includes/session.inc
Количество пользователей, которые имеют сессии. Можно рассчитывать для анонимов или аутентифицированных сессий.
sess_destroy_sid in includes/session.inc
Called by PHP session handling with the PHP session ID to end a user's session.
sess_destroy_uid in includes/session.inc
Заканчивает сеанс указанного пользователя.
sess_gc in includes/session.inc
sess_read in includes/session.inc
sess_regenerate in includes/session.inc
Called when an anonymous user becomes authenticated or vice-versa.
sess_write in includes/session.inc
statistics_access_log in modules/statistics/statistics.admin.inc
Menu callback; Displays recent page accesses.
statistics_cron in modules/statistics/statistics.module
Реализация hook_cron().
statistics_exit in modules/statistics/statistics.module
Implementation of hook_exit().
statistics_get in modules/statistics/statistics.module
Retrieves a node's 'view statistics'.
statistics_nodeapi in modules/statistics/statistics.module
Реализация hook_nodeapi().
statistics_user in modules/statistics/statistics.module
Реализация hook_user().
system_actions_configure in modules/system/system.module
Menu callback. Create the form for configuration of a single action.
system_actions_manage in modules/system/system.module
Menu callback. Display an overview of available and configured actions.
system_admin_menu_block in modules/system/system.module
Создает простой блок на странице администрирования.
system_admin_theme_submit in modules/system/system.module
Process admin theme form submissions.
system_cron in modules/system/system.module
Реализация hook_cron().
system_get_files_database in modules/system/system.module
Retrieves the current status of an array of files in the system table.
system_get_module_admin_tasks in modules/system/system.module
Создаёт список задач предлагаемый указанным модулем.
system_initialize_theme_blocks in modules/system/system.module
Assign an initial, default set of blocks for a theme.
system_install in modules/system/system.install
Реализация hook_install().
system_main_admin_page in modules/system/system.admin.inc
Menu callback; Provide the administration overview page.
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. See alsosystem_modules_uninstall_validate()
system_region_list in modules/system/system.module
Get a list of available regions from a specified theme.
system_sql in modules/system/system.admin.inc
Menu callback: return information about the database.
system_status in modules/system/system.admin.inc
Menu callback: displays the site status report. Can also be used as a pure check.
system_themes_form_submit in modules/system/system.admin.inc
Process system_themes_form form submissions.
system_theme_data in modules/system/system.module
Собирает данные о всех доступных темах.
system_update_6000 in modules/system/system.install
Remove auto_increment from {boxes} to allow adding custom blocks with visibility settings.
system_update_6001 in modules/system/system.install
Add version id column to {term_node} to allow taxonomy module to use revisions.
system_update_6009 in modules/system/system.install
The PHP filter is now a separate module.
system_update_6018 in modules/system/system.install
Add HTML corrector to HTML formats or replace the old module if it was in use.
system_update_6019 in modules/system/system.install
Reconcile small differences in the previous, manually created mysql and pgsql schemas so they are the same and can be represented by a single schema structure.
system_update_6021 in modules/system/system.install
Migrate the menu items from the old menu system to the new menu_links table.
system_update_6027 in modules/system/system.install
Add block cache.
system_update_6034 in modules/system/system.install
Rename permission 'administer access control' to 'administer permissions'.
system_update_6036 in modules/system/system.install
Change the search schema and indexing.
system_update_6039 in modules/system/system.install
Rename permissions 'edit foo content' to 'edit any foo content'. Also update poll module permission 'create polls' to 'create poll content'.
system_update_6041 in modules/system/system.install
Change forum vocabulary not to be required by default and set the weight of the forum.module 1 higher than the taxonomy.module.
system_update_6045 in modules/system/system.install
Update blog, book and locale module permissions.
taxonomy_del_term in modules/taxonomy/taxonomy.module
Удаляет термин.
taxonomy_del_vocabulary in modules/taxonomy/taxonomy.module
Удаляет указанный словарь.
taxonomy_form_alter in modules/taxonomy/taxonomy.module
Implementation of hook_form_alter(). Generate a form for selecting terms to associate with a node. We check for taxonomy_override_selector before loading the full vocabulary, so contrib modules can intercept before hook_form_alter and provide scalable...
taxonomy_get_children in modules/taxonomy/taxonomy.module
Находит все дочерние термины данного термина.
taxonomy_get_parents in modules/taxonomy/taxonomy.module
Находит всех родителей данного идентификатора термина по его ID.
taxonomy_get_related in modules/taxonomy/taxonomy.module
Find all term objects related to a given term ID.
taxonomy_get_synonyms in modules/taxonomy/taxonomy.module
Возвращает массив синонимов термина с данным ID
taxonomy_get_synonym_root in modules/taxonomy/taxonomy.module
Return the term object that has the given string as a synonym.
taxonomy_get_term in modules/taxonomy/taxonomy.module
Возвращает объект термина, соответствующий указанному идентификатору.
taxonomy_get_term_by_name in modules/taxonomy/taxonomy.module
Try to map a string to an existing term, as for glossary use.
taxonomy_get_tree in modules/taxonomy/taxonomy.module
Создает иерархическое представление словаря.
taxonomy_get_vocabularies in modules/taxonomy/taxonomy.module
Возвращает массив объектов всех словарей.
taxonomy_node_delete in modules/taxonomy/taxonomy.module
Удаляет связи ноды с ее терминами.
taxonomy_node_delete_revision in modules/taxonomy/taxonomy.module
Удаляет связи ноды с ее терминами.
taxonomy_node_get_terms in modules/taxonomy/taxonomy.module
Находит все термины, которые связаны с данной нодой, и сортирует их по словарю и весу термина.
taxonomy_node_get_terms_by_vocabulary in modules/taxonomy/taxonomy.module
Находит все термины, которые связаны с данной нодой, в одном словаре.
taxonomy_node_save in modules/taxonomy/taxonomy.module
Сохраняет связи термина для заданной ноды.
taxonomy_node_type in modules/taxonomy/taxonomy.module
Реализация hook_node_type().
taxonomy_overview_terms in modules/taxonomy/taxonomy.admin.inc
Form builder for the taxonomy terms overview.
taxonomy_save_term in modules/taxonomy/taxonomy.module
Вспомогательная функция для taxonomy_form_term_submit().
taxonomy_save_vocabulary in modules/taxonomy/taxonomy.module
taxonomy_term_count_nodes in modules/taxonomy/taxonomy.module
Считает число опубликованных нод, содержащих терм.
taxonomy_term_page in modules/taxonomy/taxonomy.pages.inc
Коллбэк меню; отображает все ноды, связанные с термином таксономии.
taxonomy_vocabulary_confirm_reset_alphabetical_submit in modules/taxonomy/taxonomy.admin.inc
Submit handler to reset a vocabulary to alphabetical order after confirmation. See alsotaxonomy_vocabulary_confirm_reset_alphabetical()
taxonomy_vocabulary_load in modules/taxonomy/taxonomy.module
Возвращает объект словаря таксономии.
template_preprocess_forum_topic_navigation in modules/forum/forum.module
Preprocess variables to format the next/previous forum topic navigation links.
translation_nodeapi in modules/translation/translation.module
Implementation of hook_nodeapi().
translation_node_get_translations in modules/translation/translation.module
Get all nodes in a translation set, represented by $tnid.
translation_remove_from_set in modules/translation/translation.module
Remove a node from its translation set (if any) and update the set accordingly.
trigger_actions_delete in modules/trigger/trigger.module
Implementation of hook_actions_delete().
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_menu in modules/trigger/trigger.module
Реализация hook_menu().
trigger_unassign_submit in modules/trigger/trigger.admin.inc
update_fix_compatibility in ./update.php
Disable anything in the {system} table that is not compatible with the current version of Drupal core.
update_sql in includes/database.inc
Выполняет SQL-запрос и возвращает статус результата. Используется преимущественно в hook_update_N() и остальных функциях инсталяции/обновления модулей.
upload_delete in modules/upload/upload.module
upload_delete_revision in modules/upload/upload.module
upload_file_download in modules/upload/upload.module
Implementation of hook_file_download().
upload_load in modules/upload/upload.module
upload_save in modules/upload/upload.module
upload_total_space_used in modules/upload/upload.module
Определяет, как много дискового пространства занято загруженными файлами.
user_access in modules/user/user.module
Определяет, имеет ли пользователь необходимое право доступа.
user_admin_access in modules/user/user.admin.inc
Menu callback: list all access rules
user_admin_access_delete_confirm in modules/user/user.admin.inc
Menu callback: delete an access rule See alsouser_admin_access_delete_confirm_submit()
user_admin_access_delete_confirm_submit in modules/user/user.admin.inc
user_admin_access_edit in modules/user/user.admin.inc
Menu callback: edit an access rule.
user_admin_access_form_submit in modules/user/user.admin.inc
Submit callback for user_admin_access_form().
user_admin_account in modules/user/user.admin.inc
Form builder; User administration page. See alsouser_admin_account_validate()
user_admin_perm in modules/user/user.admin.inc
Menu callback: administer permissions. See alsouser_admin_perm_submit()
user_admin_perm_submit in modules/user/user.admin.inc
user_admin_role in modules/user/user.admin.inc
Menu callback: administer roles. See alsouser_admin_role_validate()
user_admin_role_submit in modules/user/user.admin.inc
user_admin_role_validate in modules/user/user.admin.inc
user_authenticate_finalize in modules/user/user.module
Finalize the login process. Must be called when logging in a user.
user_block in modules/user/user.module
Реализация hook_block().
user_block_ip_action in modules/user/user.module
Implementation of a Drupal action. Adds an access rule that blocks the user's IP address.
user_block_user_action in modules/user/user.module
Implementation of a Drupal action. Blocks the current user.
user_delete in modules/user/user.module
Удаляет пользователя.
user_external_load in modules/user/user.module
user_fields in modules/user/user.module
user_get_authmaps in modules/user/user.module
Discover which external authentication module(s) authenticated a username.
user_is_blocked in modules/user/user.module
Checks for usernames blocked by user administration.
user_load in modules/user/user.module
Загружает объект пользователя.
user_multiple_delete_confirm in modules/user/user.module
user_multiple_role_edit in modules/user/user.module
Callback function for admin mass adding/deleting a user role.
user_roles in modules/user/user.module
Возвращает массив ролей, соответствующих указанным условиям.
user_save in modules/user/user.module
Сохраняет изменения аккаунта пользователя либо добавляет нового пользователя.
user_set_authmaps in modules/user/user.module
Save mappings of which external authentication module(s) authenticated a user. Maps external usernames to user ids in the users table.
variable_del in includes/bootstrap.inc
Удаляет хранимую переменную.
variable_init in includes/bootstrap.inc
Загружает таблицу "постоянных" переменных.
variable_set in includes/bootstrap.inc
Устанавливает постоянную переменную.
_aggregator_has_categories in modules/aggregator/aggregator.module
Find out whether there are any aggregator categories.
_batch_finished in includes/batch.inc
End the batch processing: Call the 'finished' callbacks to allow custom handling of results, and resolve page redirection.
_batch_page in includes/batch.inc
State-based dispatcher for the batch processing page.
_batch_shutdown in includes/batch.inc
Shutdown function: store the batch data for next request, or clear the table if the batch is finished.
_block_rehash in modules/block/block.module
Update the 'blocks' DB table with the blocks currently exported by modules.
_blogapi_space_used in modules/blogapi/blogapi.module
_book_update_outline in modules/book/book.module
Common helper function to handles additions and updates to the book outline.
_comment_delete_thread in modules/comment/comment.admin.inc
Perform the actual deletion of a comment and all its replies.
_comment_load in modules/comment/comment.module
Load the entire comment by cid.
_comment_update_node_statistics in modules/comment/comment.module
Updates the comment statistics for a given node. This should be called any time a comment is added, deleted, or updated.
_dblog_get_message_types in modules/dblog/dblog.module
_filter_tips in modules/filter/filter.module
Helper function for fetching filter tips.
_forum_topics_unread in modules/forum/forum.module
Calculate the number of nodes the user has not yet read and are newer than NODE_NEW_LIMIT.
_forum_user_last_visit in modules/forum/forum.module
_locale_export_get_strings in includes/locale.inc
Generates a structured array of all strings with translations in $language, if given. This array can be used to generate an export of the string in the database.
_locale_import_one_string in includes/locale.inc
Imports a string into the database
_locale_import_one_string_db in includes/locale.inc
Import one string into the database.
_locale_import_po in includes/locale.inc
Parses Gettext Portable Object file information and inserts into database
_locale_parse_js_file in includes/locale.inc
Parses a JavaScript file, extracts strings wrapped in Drupal.t() and Drupal.formatPlural() and inserts them into the database.
_locale_rebuild_js in includes/locale.inc
Создает(заменяет) JavaScript-файл перевода для указанного языка.
_menu_delete_item in includes/menu.inc
Вспомогательная функция для menu_link_delete; удаляет единичную ссылку меню.
_menu_link_move_children in includes/menu.inc
Обновляет дочерние элементы ссылки меню, которая перемещается.
_menu_navigation_links_rebuild in includes/menu.inc
Helper function to build menu links for the items in the menu router.
_menu_router_build in includes/menu.inc
Helper function to build the router table based on the data from hook_menu.
_menu_set_expanded_menus in includes/menu.inc
Helper function to update a list of menus with expanded items
_menu_update_parental_status in includes/menu.inc
Проверяет и обновляет статус 'has_children' для родительской ссылки.
_node_access_rebuild_batch_operation in modules/node/node.module
Batch operation for node_access_rebuild_batch.
_node_revision_access in modules/node/node.module
_node_types_build in modules/node/node.module
Builds and returns the list of available node types.
_profile_get_fields in modules/profile/profile.module
_taxonomy_term_children in modules/taxonomy/taxonomy.module
Helper for taxonomy_term_count_nodes(). Used to find out which terms are children of a parent term.
_trigger_get_hook_actions in modules/trigger/trigger.admin.inc
Get the actions that have already been defined for this type-hook-op combination.
_trigger_get_hook_aids in modules/trigger/trigger.module
Get the aids of actions to be executed for a hook-op combination.
_update_cache_clear in modules/update/update.module
Аннулирование индивидуальных кэшированных данных относящихся к обновлению статуса.
_update_cache_get in modules/update/update.module
Поиск данных из индивидуальной таблицы обновления статуса кэша.
_update_cache_set in modules/update/update.module
Хранение данных в индивидуальной таблице кэша обновления статуса.
_user_edit_validate in modules/user/user.module

Код

<?php
function db_query($query) {
  $args = func_get_args();
  array_shift($args);
  $query = db_prefix_tables($query);
  if (isset($args[0]) and is_array($args[0])) { // 'All arguments in one array' syntax
    $args = $args[0];
  }
  _db_query_callback($args, TRUE);
  $query = preg_replace_callback(DB_QUERY_REGEXP, '_db_query_callback', $query);
  return _db_query($query);
}
?>

Пользовательские комментарии

Если нужна лишь часть выборки (в обычном SQL для этого используется LIMIT), то нужно использовать функцию db_query_range() вместо db_query().

Это связано с тем, что синтаксис LIMIT различается в разных движках баз данных, поэтому использовать конструкции LIMIT напрямую в запросах Drupal нельзя.

О безосной параметризации запроса - http://drupal.org/node/101496

Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему