db_query
includes/database.inc, строка 191
- Версии
- 5 – 6
db_query($query)
Выполняет запрос к активной базе данных.
Пользовательские аргументы к SQL-запросу должны передаваться отдельными параметрами к функции, чтобы быть правильно экранированными, дабы избежать SQL-инъекций.
Правильные шаблоны для подстановки: %s
, %d
, %f
, %b
(двоичные данные, не следует помещать в кавычки ''
) и %%
.
Примечание: использование этого синтаксиса приведет к тому, что NULL
и FALSE
будут превращаться в десятичный 0, а TRUE
в десятичную 1.
Параметры
$query
Строка, содержащая SQL-запрос.
...
Переменное количество аргументов, которые подставляются в запрос по типу printf()
. Вместо переменного количества аргументов, можно использовать один массив, содержащий необходимые аргументы.
Возвращаемое значение
Результирующий ресурс запроса или FALSE
, если запрос вызвал ошибку.
Runs a basic query in the active database.
User-supplied arguments to the query should be passed in as separate parameters so that they can be properly escaped to avoid SQL injection attacks.
Valid %-modifiers are: %s, %d, %f, %b (binary data, do not enclose in '') and %%.
NOTE: using this syntax will cast NULL and FALSE values to decimal 0, and TRUE values to decimal 1.
Parameters
$query A string containing an SQL query.
... A variable number of arguments which are substituted into the query using printf() syntax. Instead of a variable number of query arguments, you may also pass a single array containing the query arguments.
Return value
A database query result resource, or FALSE if the query was not executed correctly.
Связанные темы
- Слой абстракции базы данных
- Позволяет использование разных типов СУБД, используя один программный код.
▾ 391 функции вызывают db_query()
- aggregator_block in modules/aggregator/aggregator.module
- Реализация hook_block().
- aggregator_cron in modules/aggregator/aggregator.module
- Реализация hook_cron().
- aggregator_form_category_validate in modules/aggregator/aggregator.module
- Validate aggregator_form_feed form submissions.
- aggregator_form_feed in modules/aggregator/aggregator.module
- Генерирует форму добавления/редактирования источников фида.
- aggregator_form_feed_validate in modules/aggregator/aggregator.module
- Validate aggregator_form_feed form submissions.
- aggregator_get_category in modules/aggregator/aggregator.module
- aggregator_get_feed in modules/aggregator/aggregator.module
- aggregator_install in modules/aggregator/aggregator.install
- Реализация hook_install().
- aggregator_menu in modules/aggregator/aggregator.module
- Реализация hook_menu().
- aggregator_page_categories in modules/aggregator/aggregator.module
- Коллбэк меню; показывает все категории, используемые аггрегатором.
- aggregator_page_category in modules/aggregator/aggregator.module
- Menu callback; displays all the items aggregated in a particular category.
- aggregator_page_list in modules/aggregator/aggregator.module
- aggregator_page_list_submit in modules/aggregator/aggregator.module
- aggregator_page_opml in modules/aggregator/aggregator.module
- Коллбэк меню; генерирует представление OPML из всех фидов.
- aggregator_page_rss in modules/aggregator/aggregator.module
- Коллбэк меню. Генерирует фид из материалов аггергатора или категорий в формате RSS 0.92.
- aggregator_page_source in modules/aggregator/aggregator.module
- Menu callback; displays all the items captured from a particular feed.
- aggregator_page_sources in modules/aggregator/aggregator.module
- Коллбэк меню; показывает все фиды, используемые аггрегатором.
- aggregator_parse_feed in modules/aggregator/aggregator.module
- 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_uninstall in modules/aggregator/aggregator.install
- Реализация hook_uninstall().
- aggregator_view in modules/aggregator/aggregator.module
- block_admin_configure in modules/block/block.module
- Коллбэк меню. Отображает форму настройки блока.
- block_admin_configure_submit in modules/block/block.module
- block_admin_configure_validate in modules/block/block.module
- block_admin_display_submit in modules/block/block.module
- Process main block administration form submission.
- block_block in modules/block/block.module
- Реализация hook_block().
- block_box_delete_submit in modules/block/block.module
- Удаляет блок, созданный пользователем.
- block_box_form_validate in modules/block/block.module
- block_box_get in modules/block/block.module
- block_box_save in modules/block/block.module
- block_list in modules/block/block.module
- Return all blocks in the specified region for the current user.
- block_user in modules/block/block.module
- Реализация hook_user().
- blogapi_install in modules/blogapi/blogapi.install
- Реализация hook_install().
- blogapi_metaweblog_new_media_object in modules/blogapi/blogapi.module
- Коллбэк Blogging API. Вставляет файл в Друпал.
- blogapi_mt_validate_terms in modules/blogapi/blogapi.module
- Blogging API helper - find allowed taxonomy terms for a node type.
- blogapi_uninstall in modules/blogapi/blogapi.install
- Реализация hook_uninstall().
- blog_form in modules/blog/blog.module
- Реализация hook_form().
- book_admin_orphan in modules/book/book.module
- Коллбэк меню. Отображает список всех страниц книг (book), не имеющих родителя.
- book_admin_overview in modules/book/book.module
- Возвращает административный краткий обзор всех книг.
- book_block in modules/book/book.module
- Реализация hook_block().
- book_export in modules/book/book.module
- Menu callback; Generates various representation of a book page with all descendants and prints the requested representation to output.
- book_insert in modules/book/book.module
- Implementation of hook_insert().
- book_install in modules/book/book.install
- Реализация hook_install().
- book_location in modules/book/book.module
- Given a node, this function returns an array of 'book node' objects representing the path in the book tree from the root to the parent of the given node.
- book_location_down in modules/book/book.module
- Given a node, this function returns an array of 'book node' objects representing the path in the book tree from the given node down to the last sibling of it.
- book_menu in modules/book/book.module
- Реализация hook_menu().
- book_next in modules/book/book.module
- Fetches the node object of the next page of the book.
- book_nodeapi in modules/book/book.module
- Implementation of hook_nodeapi().
- book_outline_submit in modules/book/book.module
- Handles book outline form submissions.
- book_prev in modules/book/book.module
- Fetches the node object of the previous page of the book.
- book_recurse in modules/book/book.module
- Traverses the book tree. Applies the $visit_pre() callback to each node, is called recursively for each child of the node (in weight, title order). Finally appends the output of the $visit_post() callback to the output before returning the generated...
- book_render in modules/book/book.module
- Menu callback; prints a listing of all books.
- book_toc in modules/book/book.module
- Returns an array of titles and nid entries of book pages in table of contents order.
- book_tree in modules/book/book.module
- Returns an HTML nested list (wrapped in a menu-class div) representing the book nodes as a tree.
- book_uninstall in modules/book/book.install
- Реализация hook_uninstall().
- cache_clear_all in includes/cache.inc
- Очищает кэш. Если вызывается без аргументов, то очищаются таблицы с кэшами страниц и блоков.
- cache_get in includes/cache.inc
- Return data from the persistent cache.
- cache_set in includes/cache.inc
- Store data in the persistent cache.
- comment_admin_overview_submit in modules/comment/comment.module
- Execute the chosen 'Update option' on the selected comments, such as publishing, unpublishing or deleting.
- comment_delete in modules/comment/comment.module
- Коллбек меню; Подтверждение удаления комментария.
- comment_edit in modules/comment/comment.module
- Конструктор формы; генерирует форму редактирования комментария.
- 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.module
- List the selected comments and verify that the admin really wants to delete them.
- 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
- get number of new comments for current user and specified node
- comment_num_replies in modules/comment/comment.module
- comment_render in modules/comment/comment.module
- Отображает комментарии.
- comment_reply in modules/comment/comment.module
- 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_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.module
- Categories/list tab.
- contact_admin_delete in modules/contact/contact.module
- Коллбэк меню. Страница удаления категорий.
- contact_admin_delete_submit in modules/contact/contact.module
- Process category delete form submission.
- contact_admin_edit in modules/contact/contact.module
- Коллбэк меню; Страница редактирования категорий.
- contact_admin_edit_submit in modules/contact/contact.module
- Process the contact category edit page form submission.
- contact_install in modules/contact/contact.install
- Реализация hook_install().
- contact_mail_page in modules/contact/contact.module
- contact_mail_page_submit in modules/contact/contact.module
- Process the site-wide contact page form submission.
- contact_uninstall in modules/contact/contact.install
- Реализация hook_uninstall().
- db_check_setup in includes/database.pgsql.inc
- Проверяет, корректно ли настроена база данных.
- db_lock_table in includes/database.mysql.inc
- Блокирует таблицу. Эта функция автоматически начинает транзакцию БД.
- db_next_id in includes/database.mysql.inc
- Возвращает новый уникальный ID для данной таблицы.
- db_table_exists in includes/database.mysql.inc
- Проверяет, существует ли таблица.
- db_unlock_tables in includes/database.mysql.inc
- Разблокирует все заблокированные таблицы. Эта функция автоматически завершает транзакцию.
- do_search in modules/search/search.module
- Do a query on the full-text search index for a word or words.
- drupal_client_page in modules/drupal/drupal.module
- Formats a list of all clients.
- drupal_client_ping in modules/drupal/drupal.module
- Callback function from drupal_xmlrpc() called when another site pings this one.
- drupal_cron in modules/drupal/drupal.module
- Implementation of hook_cron(); handles pings to and from the site.
- drupal_get_filename in includes/bootstrap.inc
- Returns and optionally sets the filename for a system item (module, theme, etc.). The filename, whether provided, cached, or retrieved from the database, is only returned if the file exists.
- drupal_get_installed_schema_version in includes/install.inc
- Returns the currently installed schema version for a module.
- drupal_install in modules/drupal/drupal.install
- Реализация hook_install().
- drupal_install_profile in includes/install.inc
- Install a profile (i.e. a set of modules) from scratch. The profile must be verified first using drupal_verify_profile().
- drupal_lookup_path in includes/path.inc
- Для указанного синонима пути возвращается системный URL Drupal, если он существует. Для указанного системного URL Drupal возвращается синоним пути, если он существует. В остальных случаях возвращается FALSE.
- drupal_notify in modules/drupal/drupal.module
- Sends a ping to the Drupal directory server.
- drupal_set_installed_schema_version in includes/install.inc
- Update the installed version information for a module.
- drupal_uninstall in modules/drupal/drupal.install
- Реализация hook_uninstall().
- fileupload_delete in developer/examples/fileupload.module
- Реализация hook_delete().
- fileupload_file_download in developer/examples/fileupload.module
- Implementation of hook_file_download.
- fileupload_insert in developer/examples/fileupload.module
- Implementation of hook_insert().
- fileupload_load in developer/examples/fileupload.module
- Implementation of hook_load().
- fileupload_update in developer/examples/fileupload.module
- Implementation of hook_update().
- filter_admin_delete in modules/filter/filter.module
- Menu callback; confirm deletion of a format.
- filter_admin_delete_submit in modules/filter/filter.module
- Process filter delete form submission.
- filter_admin_format_form_submit in modules/filter/filter.module
- Process filter format form submissions.
- filter_admin_format_form_validate in modules/filter/filter.module
- Validate filter format form submissions.
- filter_admin_order_submit in modules/filter/filter.module
- Process filter order configuration form submission.
- filter_formats in modules/filter/filter.module
- Retrieve a list of input formats.
- 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. The user is allowed to proceed if he did not trigger the specified event more than $threshold times per hour.
- flood_register_event in includes/common.inc
- Register an event for the current visitor (hostname/IP) to the flood control mechanism.
- forum_delete in modules/forum/forum.module
- Реализация hook_delete().
- forum_get_forums in modules/forum/forum.module
- Returns a list of all forums for a given taxonomy id
- forum_insert in modules/forum/forum.module
- Implementation of hook_insert().
- 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_uninstall in modules/forum/forum.install
- Реализация hook_uninstall().
- forum_update in modules/forum/forum.module
- Implementation of hook_update().
- forum_validate in modules/forum/forum.module
- Implementation of hook_validate().
- 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
- Позволяет загружать файлы.
- hook_init in developer/hooks/core.php
- Выполняет задачи по инициализации.
- hook_insert in developer/hooks/node.php
- Отвечает за вставку ноды.
- hook_install in developer/hooks/install.php
- Install the current version of the database schema.
- hook_load in developer/hooks/node.php
- Загружает информацию специфичную для типа ноды.
- hook_search in developer/hooks/core.php
- Определяет пользовательскую функцию поиска.
- hook_uninstall in developer/hooks/install.php
- Служит для удаления таблиц и переменных модуля.
- hook_update in developer/hooks/node.php
- Запускается при обновлениях ноды.
- install_verify_drupal in ./install.php
- Verify if Drupal is installed.
- list_themes in includes/theme.inc
- Возвращает список доступных для использования на данный момент тем.
- list_theme_engines in includes/theme.inc
- Provides a list of currently available theme engines
- locale in modules/locale/locale.module
- Provides interface translation services.
- locale_add_language_form_validate in includes/locale.inc
- Validate the language addition form.
- locale_admin_manage_delete_form_submit in modules/locale/locale.module
- Process language deletion submissions.
- locale_admin_string_delete_page in modules/locale/locale.module
- String deletion confirmation page.
- locale_install in modules/locale/locale.install
- Реализация hook_install().
- locale_refresh_cache in modules/locale/locale.module
- Refreshes database stored cache of translations.
- locale_supported_languages in modules/locale/locale.module
- Returns list of languages supported on this site.
- locale_uninstall in modules/locale/locale.install
- Реализация hook_uninstall().
- menu_confirm_disable_item_submit in modules/menu/menu.module
- menu_delete_item in modules/menu/menu.module
- Delete a menu item from the database. If $item['mid'] is specified, then this is used to find the existing item; otherwise, $item['path'] is used.
- menu_edit_item_form in modules/menu/menu.module
- Present the menu item editing form.
- menu_edit_menu_form in modules/menu/menu.module
- Menu callback; handle the adding/editing of a new menu.
- menu_form_alter in modules/menu/menu.module
- Implementation of hook_form_alter(). Add menu item fields to the node form.
- menu_item_delete_form in modules/menu/menu.module
- Menu callback; delete a single custom item.
- menu_reset_item in modules/menu/menu.module
- Menu callback; reset a single modified item.
- menu_save_item in modules/menu/menu.module
- Save a menu item to the database.
- module_disable in includes/module.inc
- Disable a given set of modules.
- 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_install in developer/examples/nodeapi_example.install
- Реализация hook_install().
- nodeapi_example_nodeapi in developer/examples/nodeapi_example.module
- Реализация hook_nodeapi().
- nodeapi_example_uninstall in developer/examples/nodeapi_example.install
- Реализация hook_uninstall().
- node_access in modules/node/node.module
- Устанавливает может ли текущий пользователь выполнять заданные действия на определённом ноде.
- node_access_example_install in developer/examples/node_access_example.install
- Реализация hook_install().
- node_access_example_nodeapi in developer/examples/node_access_example.module
- Реализация hook_nodeapi().
- node_access_example_uninstall in developer/examples/node_access_example.install
- Реализация hook_uninstall().
- 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_comment_mode in modules/node/node.module
- Retrieve the comment mode for the given node ID (none, read, or read/write).
- node_configure in modules/node/node.module
- Menu callback; presents general node configuration options.
- node_cron in modules/node/node.module
- Реализация hook_cron().
- node_delete in modules/node/node.module
- Delete a node.
- node_example_delete in developer/examples/node_example.module
- Реализация hook_delete().
- node_example_insert in developer/examples/node_example.module
- Реализация hook_insert().
- node_example_install in developer/examples/node_example.install
- Реализация hook_install().
- node_example_load in developer/examples/node_example.module
- Реализация hook_load().
- node_example_nodeapi in developer/examples/node_example.module
- Реализация hook_nodeapi().
- node_example_uninstall in developer/examples/node_example.install
- Реализация hook_uninstall().
- 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_menu in modules/node/node.module
- Реализация hook_menu().
- node_multiple_delete_confirm in modules/node/node.module
- node_operations_demote in modules/node/node.module
- Callback function for admin mass demoting nodes.
- node_operations_promote in modules/node/node.module
- Callback function for admin mass promoting nodes.
- node_operations_publish in modules/node/node.module
- Callback function for admin mass publishing nodes.
- node_operations_sticky in modules/node/node.module
- Callback function for admin mass editing nodes to be sticky.
- node_operations_unpublish in modules/node/node.module
- Callback function for admin mass unpublishing nodes.
- node_operations_unsticky in modules/node/node.module
- Callback function for admin mass editing nodes to remove stickiness.
- node_page_default in modules/node/node.module
- Menu callback; Generate a listing of promoted nodes.
- node_revision_delete in modules/node/node.module
- Delete the revision with specified revision number. A 'delete revision' nodeapi event is invoked when a revision is deleted.
- node_revision_delete_confirm_submit in modules/node/node.module
- 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
- Implementation of 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().
- pager_query in includes/pager.inc
- Выполняет «постраничный» запрос к базе данных.
- path_admin_delete in modules/path/path.module
- Post-confirmation; delete an URL alias.
- path_form_alter in modules/path/path.module
- Implementation of hook_form_alter().
- path_form_validate in modules/path/path.module
- Verify that a new URL alias is valid
- path_load in modules/path/path.module
- Извлекает специфичный синоним URL из базы данных.
- path_nodeapi in modules/path/path.module
- Implementation of hook_nodeapi().
- path_set_alias in modules/path/path.module
- Set an aliased path for a given Drupal path, preventing duplicates.
- 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
- Callback for canceling a vote
- 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
- poll_install in modules/poll/poll.install
- Реализация hook_install().
- poll_load in modules/poll/poll.module
- Implementation of hook_load().
- poll_uninstall in modules/poll/poll.install
- Реализация hook_uninstall().
- 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
- Callback for processing a vote
- profile_admin_overview in modules/profile/profile.module
- Menu callback; display a listing of all editable profile fields.
- profile_autocomplete in modules/profile/profile.module
- Callback to allow autocomplete of profile text fields.
- profile_block in modules/profile/profile.module
- Реализация hook_block().
- profile_browse in modules/profile/profile.module
- Menu callback; display a list of user information.
- profile_categories in modules/profile/profile.module
- profile_field_delete in modules/profile/profile.module
- Menu callback; deletes a field from all user profiles.
- profile_field_delete_submit in modules/profile/profile.module
- Process a field delete form submission.
- profile_field_form in modules/profile/profile.module
- Menu callback: Generate a form to add/edit a user profile field.
- profile_field_form_submit in modules/profile/profile.module
- Process profile_field_form submissions.
- profile_field_form_validate in modules/profile/profile.module
- Validate profile_field_form submissions.
- profile_install in modules/profile/profile.install
- Реализация hook_install().
- profile_load_profile in modules/profile/profile.module
- profile_save_profile in modules/profile/profile.module
- profile_uninstall in modules/profile/profile.install
- Реализация hook_uninstall().
- profile_user in modules/profile/profile.module
- Реализация hook_user().
- profile_view_profile in modules/profile/profile.module
- search_index in modules/search/search.module
- Update the full-text search index for a particular item.
- search_install in modules/search/search.install
- Реализация hook_install().
- search_uninstall in modules/search/search.install
- Реализация hook_uninstall().
- 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
- End a specific user's session
- 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.module
- 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_install in modules/statistics/statistics.install
- Реализация hook_install().
- statistics_nodeapi in modules/statistics/statistics.module
- Implementation of hook_nodeapi().
- statistics_uninstall in modules/statistics/statistics.install
- Реализация hook_uninstall().
- statistics_user in modules/statistics/statistics.module
- Реализация hook_user().
- system_admin_theme_submit in modules/system/system.module
- system_get_files_database in modules/system/system.module
- Retrieves the current status of an array of files in the system table.
- 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_modules_submit in modules/system/system.module
- Submit callback; handles modules form submission.
- system_modules_uninstall in modules/system/system.module
- Builds a form of currently disabled modules.
- system_region_list in modules/system/system.module
- Get a list of available regions from a specified theme.
- system_sql in modules/system/system.module
- Menu callback: return information about PHP.
- system_themes_submit in modules/system/system.module
- system_theme_data in modules/system/system.module
- Collect data about all currently available themes
- system_update_1005 in modules/system/system.install
- system_update_1006 in modules/system/system.install
- system_update_114 in modules/system/system.install
- system_update_118 in modules/system/system.install
- system_update_120 in modules/system/system.install
- system_update_124 in modules/system/system.install
- system_update_135 in modules/system/system.install
- system_update_145 in modules/system/system.install
- system_update_146 in modules/system/system.install
- system_update_151 in modules/system/system.install
- system_update_159 in modules/system/system.install
- Retrieve data out of the old_revisions table and put into new revision system.
- system_update_164 in modules/system/system.install
- system_update_169 in modules/system/system.install
- system_update_170 in modules/system/system.install
- system_update_172 in modules/system/system.install
- system_update_175 in modules/system/system.install
- system_update_177 in modules/system/system.install
- system_update_178 in modules/system/system.install
- Update base paths for relative URLs in node and comment content.
- system_update_179 in modules/system/system.install
- Update base paths for relative URLs in custom blocks, profiles and various variables.
- 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.
- 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
- Return an array of synonyms of the given term 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_get_vocabulary in modules/taxonomy/taxonomy.module
- Возвращает объект словаря таксономии.
- taxonomy_node_delete in modules/taxonomy/taxonomy.module
- Remove associations of a node to its terms.
- 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
- Implementation of hook_node_type().
- 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.module
- Menu callback; displays all nodes associated with a term.
- theme_aggregator_page_item in modules/aggregator/aggregator.module
- Format an individual feed item for display on the aggregator page.
- theme_forum_topic_navigation in modules/forum/forum.module
- Format the next/previous forum topic navigation links.
- update_convert_table_utf8 in ./update.php
- Convert a single MySQL table to UTF-8.
- update_fix_access_table in ./update.php
- update_fix_schema_version in ./update.php
- If the schema version for Drupal core is stored in the variables table (4.6.x and earlier) move it to the schema_version column of the system table.
- update_fix_sessions in ./update.php
- System update 130 changes the sessions table, which breaks the update script's ability to use session variables. This changes the table appropriately.
- update_fix_system_table in ./update.php
- update_fix_watchdog in ./update.php
- System update 142 changes the watchdog table, which breaks the update script's ability to use logging. This changes the table appropriately.
- update_sql in ./update.php
- Выполняет 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
- upload_load in modules/upload/upload.module
- upload_save in modules/upload/upload.module
- upload_space_used in modules/upload/upload.module
- Determine how much disk space is occupied by a user's uploaded files.
- upload_total_space_used in modules/upload/upload.module
- Determine how much disk space is occupied by uploaded files.
- user_access in modules/user/user.module
- Определяет, имеет ли пользователь необходимое право доступа.
- user_admin_access in modules/user/user.module
- Menu callback: list all access rules
- user_admin_access_delete_confirm in modules/user/user.module
- Menu callback: delete an access rule
- user_admin_access_delete_confirm_submit in modules/user/user.module
- user_admin_access_edit in modules/user/user.module
- Menu callback: edit an access rule
- user_admin_access_form_submit in modules/user/user.module
- Submit callback for user_admin_access_form().
- user_admin_account in modules/user/user.module
- user_admin_perm in modules/user/user.module
- Menu callback: administer permissions.
- user_admin_perm_submit in modules/user/user.module
- user_admin_role in modules/user/user.module
- Menu callback: administer roles.
- user_admin_role_submit in modules/user/user.module
- user_admin_role_validate in modules/user/user.module
- user_block in modules/user/user.module
- Реализация hook_block().
- user_delete in modules/user/user.module
- Delete a user.
- user_external_load in modules/user/user.module
- user_fields in modules/user/user.module
- user_get_authmaps in modules/user/user.module
- Accepts an user object, $account, or a DA name and returns an associative array of modules and DA names. Called at external login.
- user_is_blocked in modules/user/user.module
- Checks for usernames blocked by user administration
- user_load in modules/user/user.module
- Загружает объект пользователя.
- user_login_submit 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_pass_reset in modules/user/user.module
- Menu callback; process one time login link and redirects to the user page on success.
- user_roles in modules/user/user.module
- Возвращает массив ролей, соответствующих указанным условиям.
- user_save in modules/user/user.module
- Save changes to a user account or add a new user.
- user_set_authmaps in modules/user/user.module
- variable_del in includes/bootstrap.inc
- Удаляет хранимую переменную.
- variable_init in includes/bootstrap.inc
- Загружает таблицу "постоянных" переменных.
- variable_set in includes/bootstrap.inc
- Устанавливает постоянную переменную.
- watchdog in includes/bootstrap.inc
- Записывает сообщение в системный лог.
- watchdog_cron in modules/watchdog/watchdog.module
- Реализация hook_cron().
- watchdog_event in modules/watchdog/watchdog.module
- Menu callback; displays details about a log message.
- watchdog_user in modules/watchdog/watchdog.module
- Реализация hook_user().
- _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_admin_table_tree in modules/book/book.module
- _comment_delete_thread in modules/comment/comment.module
- _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.
- _filter_tips in modules/filter/filter.module
- Helper function for fetching filter tips.
- _forum_get_vid in modules/forum/forum.module
- Returns the vocabulary id for forum navigation.
- _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_add_language in includes/locale.inc
- Helper function to add a language
- _locale_admin_manage_screen in includes/locale.inc
- User interface for the language management screen.
- _locale_admin_manage_screen_submit in includes/locale.inc
- Process locale admin manager form submissions.
- _locale_export_po in includes/locale.inc
- Exports a Portable Object (Template) file for a language
- _locale_import_one_string in includes/locale.inc
- Imports a string into the database
- _locale_import_po in includes/locale.inc
- Parses Gettext Portable Object file information and inserts into database
- _locale_string_delete in includes/locale.inc
- Delete a language string.
- _locale_string_edit in includes/locale.inc
- User interface for string editing.
- _locale_string_edit_submit in includes/locale.inc
- Process string editing form submissions. Saves all translations of one string submitted from a form.
- _menu_build in includes/menu.inc
- Build the menu by querying both modules and the database.
- _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
- _system_update_utf8 in includes/install.inc
- Converts a set of tables to UTF-8 encoding.
- _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.
- _update_178_url_formats in modules/system/system.install
- _user_edit_validate in modules/user/user.module
- _watchdog_get_message_types in modules/watchdog/watchdog.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);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии