) and removes the related obsolete theme settings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-930f9578ca", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/template_process_html/7.x", "instruction": "What does the template_process_html(&$variables) function do in Drupal 7 when processing variables for the html.tpl.php template?", "context": "", "response": "function template_process_html(&$variables): Renders page_top and page_bottom, assigns the rendered page content, and adds scripts, styles, and HTML header before passing the variables to the template.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-93155ce1c6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_get_books/7.x", "instruction": "What does the function book_get_books() do in Drupal 7 and what structure does it return?", "context": "", "response": "function book_get_books(): returns an associative array with all published books, combining node and menu data, ordered by weight and title.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-931e146de0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_init/7.x", "instruction": "What does the function locale_init() do in Drupal 7?", "context": "", "response": "function locale_init(): Initializes date formats according to the user's current language, overwriting the global $conf configuration except on the date and time format administration page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-93287fc976", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_link_maintain/7.x", "instruction": "What does the function menu_link_maintain do in Drupal 7 and how does it handle insert, update, and delete operations for menu links?", "context": "", "response": "function menu_link_maintain($module, $op, $link_path, $link_title): inserts, updates, or deletes non-custom menu links associated with a module, depending on the operation specified in $op.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-933456e78c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.module/function/aggregator_block_save/7.x", "instruction": "What does the function aggregator_block_save do in Drupal 7?", "context": "", "response": "function aggregator_block_save($delta = '', $edit = array()): implements hook_block_save() and updates block configuration ('block' field) in the aggregator_category table when the delta corresponds to a category.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-93483b22e4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.admin.inc/function/taxonomy_form_vocabulary_submit/7.x", "instruction": "What does the function taxonomy_form_vocabulary_submit do in Drupal 7 when processing the taxonomy vocabulary form submission?", "context": "", "response": "function taxonomy_form_vocabulary_submit($form, &$form_state): processes the vocabulary form submission: if deletion is requested it rebuilds to confirm, otherwise saves the vocabulary and logs a message and watchdog entry.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-934f8036cd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_modules_uninstalled/7.x", "instruction": "What does the function node_modules_uninstalled do in Drupal 7 when uninstalling modules?", "context": "", "response": "function node_modules_uninstalled($modules): removes from the {block_node_type} table the records corresponding to blocks of uninstalled modules.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-935fb875b7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/class/DatabaseConnection/7.x", "instruction": "What does the escapeLike method of the DatabaseConnection class do in Drupal 7 and what characters does it escape?", "context": "", "response": "public function escapeLike($string): escapes LIKE wildcard characters (%, _, and backslash) by prepending a backslash to allow literal searches without wildcard behavior.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-936ecce4e1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.module/function/template_preprocess_profile_block/7.x", "instruction": "What does the function template_preprocess_profile_block do in Drupal to prepare the profile-block template variables?", "context": "", "response": "function template_preprocess_profile_block(&$variables): Processes variables for the profile-block.tpl.php template, adding the user photo and a filtered 'profile' array containing only fields with values, including title, value, and type of each field.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-937b2a5c76", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.inc/function/_openid_math_mod/7.x", "instruction": "What is the _openid_math_mod function used for in Drupal 7 and what math libraries does it use to calculate the modulus?", "context": "", "response": "function _openid_math_mod($x, $y): calculates the modulus by calling the corresponding function from the available OpenID math library, either GMP or BCMath.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9387e02e80", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_themes_admin_form/7.x", "instruction": "How does the system_themes_admin_form function build the administration theme selection form in Drupal 7?", "context": "", "response": "function system_themes_admin_form($form, &$form_state, $theme_options): builds the form for selecting the administration theme, including a theme selector with a default theme option and a checkbox to use the administration theme when editing or creating content.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-93b5dba1ad", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7044/7.x", "instruction": "What does the system_update_7044 update function do in Drupal 7?", "context": "", "response": "function system_update_7044(): drops the actions_aid table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-93ba206eb3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.pages.inc/function/template_preprocess_user_profile/7.x", "instruction": "What does the template_preprocess_user_profile function do in Drupal 7 and what does it prepare for the user-profile.tpl.php template?", "context": "", "response": "function template_preprocess_user_profile(&$variables): processes variables for user-profile.tpl.php by extracting the user account and preparing attached fields.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-93bcac1ff5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dblog%21dblog.install/function/dblog_update_7001/7.x", "instruction": "What changes does the dblog_update_7001 function make to the {watchdog} table when updating to Drupal 7?", "context": "", "response": "function dblog_update_7001(): modifies the watchdog table structure: allows NULL values in link, adds index on uid, expands type to varchar(64), and converts variables from text to blob.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-93bdb64a16", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/image_path_flush/7.x", "instruction": "How are cached versions of a specific image cleared across all image styles in Drupal 7?", "context": "", "response": "function image_path_flush($path): Deletes all cached versions of a given image for each defined image style.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-93dc3c73e3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_validate_utf8/7.x", "instruction": "How can I check if a string is valid UTF-8 in Drupal 7 using the drupal_validate_utf8 function?", "context": "", "response": "function drupal_validate_utf8($text): Returns TRUE if the provided text is valid UTF-8 (including empty strings) and FALSE if it contains invalid byte sequences.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-93f7ce4967", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_php/7.x", "instruction": "What does the system_php function do in Drupal 7 and what content does it return when accessing its menu path?", "context": "", "response": "function system_php(): is a menu callback that displays PHP information via phpinfo() with filtered flags and terminates execution with drupal_exit().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-941b10e270", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_execute_handlers/7.x", "instruction": "What does the form_execute_handlers function do in Drupal 7?", "context": "", "response": "function form_execute_handlers($type, &$form, &$form_state): Executes custom validation and submit handlers of a form, prioritizing button-specific ones and then form-level ones.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-94229348c6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/filter_dom_serialize/7.x", "instruction": "How is a DOMDocument object serialized to an HTML/XHTML fragment in Drupal 7?", "context": "", "response": "function filter_dom_serialize($dom_document): Converts the body part of a DOMDocument to a valid XHTML fragment, escaping CDATA elements in script and style, and normalizing self-closing tags.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9425febf2d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_process_vertical_tabs/7.x", "instruction": "What does the form_process_vertical_tabs function do in Drupal 7 and what is its exact signature?", "context": "", "response": "function form_process_vertical_tabs($element, &$form_state): Creates a form group with vertical tabs and returns the processed element.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9441848ff8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/_db_create_keys_sql/7.x", "instruction": "What does the _db_create_keys_sql function do in Drupal 7 and how does it generate SQL for schema keys?", "context": "", "response": "function _db_create_keys_sql($spec): Delegates to the active connection's schema implementation to generate key creation SQL statements from the provided specification.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-944ceb1aaf", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/_theme_registry_callback/7.x", "instruction": "How is the callback used by theme_get_registry() set in Drupal 7?", "context": "", "response": "function _theme_registry_callback($callback = NULL, array $arguments = array()): Sets the callback function and its arguments to be used later by theme_get_registry().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9458344370", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21path%21path.module/function/path_node_insert/7.x", "instruction": "What does the path_node_insert function do when inserting a node with a path alias in Drupal 7?", "context": "", "response": "function path_node_insert($node): Checks if the node has a defined path alias, trims it, and if not empty, saves the alias associated with the node via path_save with the corresponding language.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9461c4dc6b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.api.php/function/hook_search_execute/7.x", "instruction": "What does Drupal 7's hook_search_execute($keys = NULL, $conditions = NULL) do and what should it return?", "context": "", "response": "function hook_search_execute($keys = NULL, $conditions = NULL): Executes a search for a set of keywords and returns an array of search results with the required fields.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9471e46eda", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21color%21color.module/function/color_get_info/7.x", "instruction": "How does the color_get_info function obtain Color module information for a specific theme in Drupal 7?", "context": "", "response": "function color_get_info($theme): Finds and loads the color.inc file of the specified theme, caches its $info array, and returns it.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-94749ad934", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_user_delete/7.x", "instruction": "What does the node_user_delete function do in Drupal 7 and what hook does it implement?", "context": "", "response": "function node_user_delete($account): Implements hook_user_delete() to remove the user's nodes and old revisions, and clean up their history.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9479b76c09", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.inc/constant/OPENID_RAND_SOURCE/7.x", "instruction": "What is the value of the OPENID_RAND_SOURCE constant in the Drupal 7 OpenID module and what is it used for?", "context": "", "response": "define('OPENID_RAND_SOURCE', '/dev/urandom');: Defines the random number source used for Diffie-Hellman key exchange calculations in OpenID.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-94951eba17", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/_drupal_shutdown_function/7.x", "instruction": "What does the _drupal_shutdown_function function do in Drupal 7?", "context": "", "response": "function _drupal_shutdown_function(): Executes registered shutdown functions, iterating over callbacks and handling exceptions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-949900e349", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21path%21path.admin.inc/function/path_admin_form/7.x", "instruction": "How is the path alias administration form built in Drupal 7 and what fields does path_admin_form expose?", "context": "", "response": "function path_admin_form($form, &$form_state, $path = array( 'source' => '', 'alias' => '', 'language' => LANGUAGE_NONE, 'pid' => NULL, )): Builds the path alias administration form with the fields source, alias, language and save/delete buttons.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-949d16555f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21rdf%21rdf.module/function/rdf_process/7.x", "instruction": "What does the rdf_process(&$variables, $hook) function do in the Drupal 7 RDF module?", "context": "", "response": "function rdf_process(&$variables, $hook): Adds RDFa attributes to template variables by wrapping content and adding prefixes according to the attribute arrays.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-94a7f3657f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/entity_load/7.x", "instruction": "What does the entity_load function do in Drupal 7 and how does it handle entity caching?", "context": "", "response": "function entity_load($entity_type, $ids = FALSE, $conditions = array(), $reset = FALSE): Loads entities from the database using a controller that implements DrupalEntityControllerInterface, storing results in static cache to avoid repeated accesses in the same request; resets the cache when $reset is TRUE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-94a90a6651", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.info.inc/function/field_info_cache_clear/7.x", "instruction": "What does the field_info_cache_clear() function do in Drupal?", "context": "", "response": "function field_info_cache_clear(): Clears the field info cache without deleting the field data cache, useful when purging fields or instances.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-94cd9409d6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21blog%21blog.module/function/blog_view/7.x", "instruction": "What does the blog_view function do in Drupal 7 and when does it add the breadcrumb for a blog entry?", "context": "", "response": "function blog_view($node, $view_mode): Implements hook_view() and, if the view mode is 'full' and the node is a page, sets the breadcrumb with links to Home, Blogs and the author's blog, then returns the $node object.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-94e15b8a4a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_uri_scheme/7.x", "instruction": "What does the file_uri_scheme function do in Drupal 7 and what does it return when passed a URI like 'public://example.txt'?", "context": "", "response": "function file_uri_scheme($uri): extracts and returns the scheme of a stream URI, or FALSE if it has none.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-94ef0d3c2e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_export_traverse/7.x", "instruction": "What does the book_export_traverse function do in Drupal 7 when traversing the book tree?", "context": "", "response": "function book_export_traverse($tree, $visit_func): Traverses the book tree to build printable or exportable output, applying a callback function to each node recursively in weight and title order.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9500a9a825", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21content_types.inc/function/node_node_type_update/7.x", "instruction": "What does the node_node_type_update function do when updating a node type in Drupal 7?", "context": "", "response": "function node_node_type_update($info): Implements hook_node_type_update and, if the old type differs from the new one, updates nodes from the old type to the new one and displays a message with the number of modified nodes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9522800fe1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.pages.inc/function/openid_authentication_page/7.x", "instruction": "What does the openid_authentication_page function do in Drupal 7?", "context": "", "response": "function openid_authentication_page(): Processes OpenID authentication by calling openid_complete and handling success, failure, or cancellation cases.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-952db0a957", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21pgsql%21database.inc/constant/POSTGRESQL_NEXTID_LOCK/7.x", "instruction": "What is the constant that Drupal 7 defines as the lock name to obtain the next insert identifier in PostgreSQL?", "context": "", "response": "define('POSTGRESQL_NEXTID_LOCK', 1000);: Defines the lock name to retrieve the next insert identifier.", "tags": ["api-reference", "constant"], "created_at": "2026-09-29"}
{"id": "doc-drupal7-9539163039", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21unicode.inc/function/drupal_strlen/7.x", "instruction": "How does the drupal_strlen function count the number of characters in a UTF-8 string in Drupal 7?", "context": "", "response": "function drupal_strlen($text): Counts the number of characters in a UTF-8 string, using mb_strlen if the multibyte extension is available, or a regular expression to remove UTF-8 continuation bytes otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9544743c75", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.admin.inc/function/user_admin_role_delete_confirm_submit/7.x", "instruction": "What does the user_admin_role_delete_confirm_submit function do in Drupal?", "context": "", "response": "function user_admin_role_delete_confirm_submit($form, &$form_state): Deletes the specified role, displays a confirmation message, and redirects to the role management page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9545f2239c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7015/7.x", "instruction": "What does the system_update_7015 function do in Drupal 7?", "context": "", "response": "function system_update_7015(): Updates menu link paths from 'logout' to 'user/logout' and configures user menu links to be parentless and belong to the 'user-menu' menu.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-954a4bbf98", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_module_invoke/7.x", "instruction": "What does user_module_invoke do in Drupal 7 and why can't module_invoke() be used to invoke user hooks?", "context": "", "response": "function user_module_invoke($type, &$edit, $account, $category = NULL): invokes a user hook in each module passing the arguments by reference.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-954c4122fd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/_theme_table_cell/7.x", "instruction": "What does the _theme_table_cell function do in Drupal 7?", "context": "", "response": "function _theme_table_cell($cell, $header = FALSE): Generates the HTML code for a table cell, either or , from the cell data and the header flag.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9555861683", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21trigger%21trigger.install/function/trigger_install/7.x", "instruction": "What does the trigger_install function of the trigger module do in Drupal 7?", "context": "", "response": "function trigger_install(): Implements hook_install() and executes actions_synchronize() to synchronize actions defined in code with the database.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-95642a9afc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.manager.inc/function/update_manager_update_form_submit/7.x", "instruction": "What does the update_manager_update_form_submit function do in the Update Manager module of Drupal 7?", "context": "", "response": "function update_manager_update_form_submit($form, &$form_state): Sets up a batch that downloads, extracts, and verifies the selected versions of the projects.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-956ce99d98", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/drupal_build_form/7.x", "instruction": "What does the drupal_build_form function do in Drupal 7 when passed a form_id and a form_state?", "context": "", "response": "function drupal_build_form($form_id, &$form_state): builds and processes a form from a form_id, first checking the cache and then calling drupal_process_form() to validate and execute the handlers.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-95a12eff71", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21query.inc/class/UpdateQuery/7.x", "instruction": "How are field=>value pairs added to an UPDATE query via the fields() method of UpdateQuery in Drupal 7?", "context": "", "response": "public function fields(array $fields): sets the array of fields to be updated in the database", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-95b5c12f04", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_field_storage_pre_insert/7.x", "instruction": "What does the forum_field_storage_pre_insert function do in Drupal 7?", "context": "", "response": "function forum_field_storage_pre_insert($entity_type, $entity, &$skip_fields): Implements hook_field_storage_pre_insert() to insert records into forum_index when creating published forum nodes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-95b6068547", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/function/drupal_verify_profile/7.x", "instruction": "What does the drupal_verify_profile function check and what does it return during installation?", "context": "", "response": "function drupal_verify_profile($install_state): Verifies an installation profile and returns the list of required modules.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-95c495e2ce", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/_form_builder_handle_input_element/7.x", "instruction": "What does the function _form_builder_handle_input_element do in Drupal 7?", "context": "", "response": "function _form_builder_handle_input_element($form_id, &$element, &$form_state): Adds the #name and #value properties of an input element before rendering.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-95c98125b1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/authorize.php/function/authorize_access_denied_page/7.x", "instruction": "What does the function authorize_access_denied_page do in Drupal 7?", "context": "", "response": "function authorize_access_denied_page(): Generates a 403 error page (access denied) for the authorize.php script.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-95e7f56ae1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_types_rebuild/7.x", "instruction": "What does the function node_types_rebuild do in Drupal?", "context": "", "response": "function node_types_rebuild(): Updates the database cache of node types, saving new types defined by modules and removing obsolete ones.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-95f092cb5b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_assign_owner_action/7.x", "instruction": "What does the function node_assign_owner_action($node, $context) do in Drupal 7?", "context": "", "response": "function node_assign_owner_action($node, $context): Sets the node's uid to the value of the 'owner_uid' element in the context and logs the change in watchdog.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-95f9e73013", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_more_help_link/7.x", "instruction": "How is the 'more help' link generated in Drupal 7 using the theme_more_help_link function?", "context": "", "response": "function theme_more_help_link($variables): Returns the HTML of a 'more help' link with the text 'More help' and the URL specified in $variables['url'].", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-96043883f7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.module/function/menu_add_link_labels/7.x", "instruction": "What does the function menu_add_link_labels do in Drupal 7 and how does it modify a menu link title?", "context": "", "response": "function menu_add_link_labels(&$title, $item): Adds parenthetical labels to the title of hidden, unpublished, or logged-in-only menu links.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-960570bdb8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.pages.inc/function/theme_filter_tips/7.x", "instruction": "What does the function theme_filter_tips do in Drupal 7?", "context": "", "response": "function theme_filter_tips($variables): Returns HTML for a set of filter tips, iterating over text formats and their associated tips, with an extended output option when $long is TRUE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-960f107bbd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_tree/7.x", "instruction": "What does the function menu_tree($menu_name) return in Drupal 7?", "context": "", "response": "function menu_tree($menu_name): Returns a structured array representing the specified menu on the current page, ready to be rendered by drupal_render().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9655e053c8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/filter_format_save/7.x", "instruction": "How is a text format object saved (or updated) in the database using the filter_format_save function in Drupal 7?", "context": "", "response": "function filter_format_save($format): saves a text format object to the database, inserting it if new or updating it if it already exists.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9656ae946a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/themes%21seven%21template.php/function/seven_node_add_list/7.x", "instruction": "How does the seven_node_add_list function generate the list of available node types for creating content in Drupal 7?", "context": "", "response": "function seven_node_add_list($variables): Returns the HTML with a list of links to node types or a message if no content types exist yet.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-965cff7925", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_indentation/7.x", "instruction": "What does the theme_indentation($variables) function do in Drupal 7 and what is its return value?", "context": "", "response": "function theme_indentation($variables): returns the HTML of one or more indentation divs used to create indents in drag-and-drop tables.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-966792ebda", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21language.inc/function/language_negotiation_get_switch_links/7.x", "instruction": "How to get the language switch links for a specific language negotiation type and internal path in Drupal 7?", "context": "", "response": "function language_negotiation_get_switch_links($type, $path): returns a keyed array of links ready to be themed that allow switching between available languages according to the specified negotiation type and path.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9691df83d7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_language_types/7.x", "instruction": "What does the drupal_language_types function do in Drupal 7 and what does it return?", "context": "", "response": "function drupal_language_types(): returns an associative array with built-in language types as keys and a boolean indicating whether each type is configurable as the value.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-96adf63246", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_date_format_type_save/7.x", "instruction": "How is a date format type saved in the database in Drupal 7?", "context": "", "response": "function system_date_format_type_save($type): Saves a date format type to the database by inserting or updating the date_format_type table according to the is_new flag.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-96cd5f309e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21tracker%21tracker.module/function/tracker_comment_unpublish/7.x", "instruction": "What does the tracker_comment_unpublish function do in Drupal?", "context": "", "response": "function tracker_comment_unpublish($comment): Implements hook_comment_unpublish() to remove tracking of associated content when a comment is unpublished, using the comment's nid, uid, and changed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-96d6e45342", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21overlay%21overlay.module/function/overlay_permission/7.x", "instruction": "What permissions does the overlay_permission function define in Drupal 7?", "context": "", "response": "function overlay_permission(): Implements hook_permission() and defines the 'access overlay' permission for viewing administrative pages in the overlay.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-96da60b684", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_date_formats/7.x", "instruction": "How to implement hook_date_formats to define additional date formats in Drupal 7?", "context": "", "response": "function hook_date_formats(): Defines additional date formats that can be assigned to date types in the administrative interface.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-96e458f160", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_secondary_menu/7.x", "instruction": "What does the menu_secondary_menu function return in Drupal 7?", "context": "", "response": "function menu_secondary_menu(): returns an array of links to render secondary links, using the main and secondary menu settings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-96f2947d28", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.pages.inc/function/openid_user_add_validate/7.x", "instruction": "What does the openid_user_add_validate function do in the OpenID module of Drupal 7?", "context": "", "response": "function openid_user_add_validate($form, &$form_state): validates that the entered OpenID identifier is not already registered in the authmap table and shows an error if it is in use.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-96f877037b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/constant/COMMENT_NODE_OPEN/7.x", "instruction": "What does the COMMENT_NODE_OPEN constant indicate in the comments module of Drupal 7?", "context": "", "response": "define('COMMENT_NODE_OPEN', 2);: Indicates that comments for a node are open.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-96ff7fc832", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/drupal_move_uploaded_file/7.x", "instruction": "What does the drupal_move_uploaded_file function do in Drupal 7 and why does it exist instead of using PHP's move_uploaded_file() directly?", "context": "", "response": "function drupal_move_uploaded_file($filename, $uri): Moves an uploaded file to a new location and works around PHP limitations when safe_mode or open_basedir are enabled, supporting normal paths and stream wrappers.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-97088b56c7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/filter_element_info/7.x", "instruction": "What does the filter_element_info function do in Drupal 7 and what element type does it register?", "context": "", "response": "function filter_element_info(): implements hook_element_info() defining the text_format element with #process filter_process_format, #base_type textarea, and #theme_wrappers text_format_wrapper.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9710cc5103", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_override_server_variables/7.x", "instruction": "What does the drupal_override_server_variables function do in Drupal 7 and when should it be called from command line scripts?", "context": "", "response": "function drupal_override_server_variables($variables = array()): Sets the necessary $_SERVER variables for command line scripts to function correctly, allowing passing a URL to detect the site and defining default values such as HTTP_HOST and REMOTE_ADDR.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-971c138375", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_menu_link_alter/7.x", "instruction": "What does the hook_menu_link_alter function do in Drupal?", "context": "", "response": "function hook_menu_link_alter(&$item): Alters menu links when they are saved, hiding admin links without mlid and marking specific links for other hooks to alter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-972b263cd8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21options%21options.module/function/options_array_transpose/7.x", "instruction": "What does the options_array_transpose function in modules/field/modules/options/options.module do?", "context": "", "response": "function options_array_transpose($array): manipulates a two-dimensional array to invert rows and columns", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-973483c33e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.module/function/field_system_info_alter/7.x", "instruction": "What does the field_system_info_alter function do in Drupal 7?", "context": "", "response": "function field_system_info_alter(&$info, $file, $type): Implements hook_system_info_alter to mark as required the modules that provide field types when active fields of that type exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9743473cef", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.pages.inc/function/theme_aggregator_page_opml/7.x", "instruction": "What does the theme_aggregator_page_opml function do in Drupal 7?", "context": "", "response": "function theme_aggregator_page_opml($variables): Prints the OPML page that lists the provided feeds.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-975380273b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_link_load/7.x", "instruction": "What does the menu_link_load($mlid) function do in Drupal?", "context": "", "response": "function menu_link_load($mlid): Gets a translated and access-checked menu link, ready to render.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-975608cdc9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.admin.inc/function/forum_form_main/7.x", "instruction": "What does the forum_form_main function do in Drupal 7 and what forms does it return based on the type?", "context": "", "response": "function forum_form_main($type, $edit = array()): Is a page callback that returns a form to create a new forum or container; if deletion is requested, it redirects to the deletion confirmation form, and based on the $type parameter ('forum' or 'container') it delegates to forum_form_forum or forum_form_container respectively.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-976f7fd06c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_valid_email_address_alter/7.x", "instruction": "What does the hook_valid_email_address_alter hook do in Drupal?", "context": "", "response": "function hook_valid_email_address_alter(&$valid, $mail): This hook alters email validation, running immediately after the main validation to allow other modules to override it with stricter or more flexible validation standards.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-97858db205", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_download_headers/7.x", "instruction": "What does the file_download_headers function do in Drupal 7 and how is it used to get the necessary headers for a private file download?", "context": "", "response": "function file_download_headers($uri): Gets the HTTP headers for downloading a private file by invoking the hook_file_download implementations of the modules.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9795fbf768", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_local_tasks/7.x", "instruction": "What does the menu_local_tasks function do in Drupal 7 and what does it return when passed a local tasks level?", "context": "", "response": "function menu_local_tasks($level = 0): Collects the local tasks (tabs), action links, and the root path of the current page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-979d1ba581", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21contact%21contact.module/function/contact_form_user_admin_settings_alter/7.x", "instruction": "What does the function contact_form_user_admin_settings_alter do in Drupal 7?", "context": "", "response": "function contact_form_user_admin_settings_alter(&$form, &$form_state): Adds the personal contact form setting field to the user settings page via hook_form_FORM_ID_alter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-97af7e926c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21language.api.php/function/hook_language_switch_links_alter/7.x", "instruction": "What does the hook hook_language_switch_links_alter allow you to do in Drupal 7?", "context": "", "response": "function hook_language_switch_links_alter(array &$links, $type, $path): Allows modifying the language switcher links array before they are processed by the l() function.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-97b798df7a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.module/constant/FIELD_LOAD_REVISION/7.x", "instruction": "What does the constant FIELD_LOAD_REVISION represent in the Drupal 7 field API?", "context": "", "response": "define('FIELD_LOAD_REVISION', 'FIELD_LOAD_REVISION');: is an age argument to load the version of field data of a specified entity in the entity with field_attach_load().", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-97bceef7e9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/t/7.x", "instruction": "How does the t() function work in Drupal 7 and how are the $args and $options arguments used for variable substitution and translation context?", "context": "", "response": "function t($string, array $args = array(), array $options = array()): translates a string to the current language and allows variable substitution and context to handle ambiguous translations.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-97cc06aa10", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.install/function/block_update_7008/7.x", "instruction": "What does the function block_update_7008 do in Drupal 7?", "context": "", "response": "function block_update_7008(): removes the 'throttle' field from the 'block' table to update the database schema to Drupal 7.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-97d5730c27", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.module/function/_profile_form_explanation/7.x", "instruction": "What does the _profile_form_explanation function do in Drupal 7 when generating the explanation of a profile field?", "context": "", "response": "function _profile_form_explanation($field): Returns the filtered field explanation, adding notes about format for lists and privacy if applicable.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-97df15951e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.pages.inc/function/profile_autocomplete/7.x", "instruction": "How does the profile_autocomplete function work in Drupal 7 and what exactly does it do?", "context": "", "response": "function profile_autocomplete($field, $string): It is a callback that allows autocompleting profile text fields, querying matching values in profile_value for the specified field and returning them as JSON.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-97ea80773c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_tree_page_data/7.x", "instruction": "How does the menu_tree_page_data function obtain the data structure of a named menu tree based on the current page in Drupal 7?", "context": "", "response": "function menu_tree_page_data($menu_name, $max_depth = NULL, $only_active_trail = FALSE): returns an array of menu links in render order, each with 'link' and 'below' keys, building the tree based on the active trail, maximum depth, and per-page cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-97f54fc440", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.inc/function/_openid_dh_long_to_base64/7.x", "instruction": "What does the function _openid_dh_long_to_base64 do in the Drupal 7 OpenID module?", "context": "", "response": "function _openid_dh_long_to_base64($str): converts a long value to base64 by first encoding it to binary and then applying base64_encode.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-97fb79db2d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/function/drupal_load_updates/7.x", "instruction": "What does the function drupal_load_updates do in Drupal 7 and what does it initialize?", "context": "", "response": "function drupal_load_updates(): loads the .install files of installed modules to initialize the update system.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-98306606c9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.module/function/shortcut_set_switch_access/7.x", "instruction": "How does Drupal 7 determine if the current user has permission to change the shortcut set of a user account via the function shortcut_set_switch_access?", "context": "", "response": "function shortcut_set_switch_access($account = NULL): Returns TRUE if the current user can change the shortcut set of the provided account (or their own if none is specified), and FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-98357df435", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/_system_update_bootstrap_status/7.x", "instruction": "What does the function _system_update_bootstrap_status() do in Drupal 7 and when is it invoked?", "context": "", "response": "function _system_update_bootstrap_status(): Updates the bootstrap column in the system table marking modules that implement bootstrap hooks (like hook_boot) as 1 and the rest as 0, then resets the cached list; it is called internally by module_enable/module_disable and by drupal_flush_all_caches.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9840c0ef26", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_update/7.x", "instruction": "What does hook_update do in Drupal?", "context": "", "response": "function hook_update($node): It is a node-type-specific hook that responds to node updates, invoked during the update process.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-985353cdb0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/theme_node_search_admin/7.x", "instruction": "What does the function theme_node_search_admin do in Drupal 7 and what does it return?", "context": "", "response": "function theme_node_search_admin($variables): Returns the HTML for the content sorting section on the search administration page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-985a1f3c51", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.install/function/book_install/7.x", "instruction": "What does the function book_install do in the book module in Drupal 7?", "context": "", "response": "function book_install(): implements hook_install and creates the necessary node type for the book module.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9866993fc9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/profiles%21standard%21standard.install/function/standard_install/7.x", "instruction": "What does the function standard_install() of the standard profile do in Drupal 7 during site installation?", "context": "", "response": "function standard_install(): Implements hook_install() to configure text formats, default blocks, node types, fields, permissions, administrator role, and administration theme.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-986855a901", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_permission/7.x", "instruction": "What permissions does the forum_permission function of the forum module define in Drupal 7?", "context": "", "response": "function forum_permission(): returns an array that declares the 'administer forums' permission for forum administration.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9875871fdd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/external_documentation%21developer%21globals.php/global/language_url/7.x", "instruction": "What does the global variable $language_url contain in Drupal 7?", "context": "", "response": "global $language_url;: contains an object with the active URL language information and is used as the default value in URL-related functions like l() when no language is explicitly specified.", "tags": ["api-reference", "global"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9877c95243", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.admin.inc/function/block_admin_display_form/7.x", "instruction": "What is the signature of the block_admin_display_form function in Drupal 7 and what does it do?", "context": "", "response": "function block_admin_display_form($form, &$form_state, $blocks, $theme, $block_regions = NULL): is the constructor of the main block administration form that generates the form definition to assign region and weight to each block of the specified theme.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9879c4cfbe", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.install/function/user_update_7008/7.x", "instruction": "What does the user_update_7008 function do in Drupal 7 when the 'user_register' variable is not set?", "context": "", "response": "function user_update_7008(): checks if user_register is not defined in the configuration and sets it to the Drupal 6 default value USER_REGISTER_VISITORS.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-987e882180", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_admin_paths/7.x", "instruction": "Which node routes does node_admin_paths mark as administrative in Drupal 7 when node_admin_theme is enabled?", "context": "", "response": "function node_admin_paths(): returns an array with the edit, delete, revision, and add node routes so they use the administration theme.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-987f222d0a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpc.inc/function/xmlrpc_request/7.x", "instruction": "What does the xmlrpc_request($method, $args) function do in Drupal 7?", "context": "", "response": "function xmlrpc_request($method, $args): Constructs an object representing an XML-RPC request using the provided method and arguments.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9889dd147b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.api.php/function/hook_search_status/7.x", "instruction": "What does the hook_search_status function do in Drupal 7 and what data does it return about indexing?", "context": "", "response": "function hook_search_status(): reports the indexing status by returning an associative array with 'remaining' and 'total'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-98965a7ca8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/constant/IMAGE_STORAGE_OVERRIDE/7.x", "instruction": "What is the value and meaning of the IMAGE_STORAGE_OVERRIDE constant in the image module of Drupal 7?", "context": "", "response": "define('IMAGE_STORAGE_OVERRIDE', 2);: Defines the value 2 as a constant to identify user image styles that override predefined styles by modules.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-98a438b777", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/function/_locale_export_po/7.x", "instruction": "What does the _locale_export_po function do in Drupal 7 and how does it generate the output PO or POT file?", "context": "", "response": "function _locale_export_po($language = NULL, $output = NULL): Writes a generated PO or POT file to output and downloads it for the client with appropriate content headers.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-98aee05887", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21path%21path.api.php/function/hook_path_update/7.x", "instruction": "How to implement hook_path_update in Drupal 7 to react when a URL alias is updated?", "context": "", "response": "function hook_path_update($path): Responds to a path update and allows synchronizing the alias in custom tables using the pid.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-98b5a61c05", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_delete_file_if_stale/7.x", "instruction": "What does the drupal_delete_file_if_stale function do in Drupal 7 and when does it delete a file?", "context": "", "response": "function drupal_delete_file_if_stale($uri): Deletes files whose age exceeds the configurable threshold (default 30 days) by comparing REQUEST_TIME with filemtime($uri).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-98bc940a2e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.info.inc/function/field_behaviors_widget/7.x", "instruction": "What does the field_behaviors_widget() function do in Drupal 7 and what behavior values does it return based on widget type?", "context": "", "response": "function field_behaviors_widget($op, $instance): Determines the behavior of a widget for a given operation, returning FIELD_BEHAVIOR_NONE, FIELD_BEHAVIOR_CUSTOM, or FIELD_BEHAVIOR_DEFAULT based on widget type information.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-98cf84d71d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21content_types.inc/function/node_type_delete_confirm_submit/7.x", "instruction": "What does the node_type_delete_confirm_submit method do in Drupal?", "context": "", "response": "function node_type_delete_confirm_submit($form, &$form_state): The method processes content type deletion confirmation submissions, calls node_type_delete(), sets a preview variable, displays a confirmation message, then rebuilds nodes and menu before redirecting the user.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-98db2a99b6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_theme_registry_alter/7.x", "instruction": "What is the hook_theme_registry_alter function used for in Drupal 7 and what theme registry information can it modify?", "context": "", "response": "function hook_theme_registry_alter(&$theme_registry): Alters the theme registry information returned by hook_theme(), allowing modification of theme hook properties before the theme cache is rebuilt.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-98e6ff59d1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.admin.inc/function/menu_delete_menu_confirm/7.x", "instruction": "What does the menu_delete_menu_confirm function do in Drupal 7?", "context": "", "response": "function menu_delete_menu_confirm($form, &$form_state, $menu): Builds a confirmation form for deleting a custom menu, showing the number of links and a warning message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-98edda5881", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_purge_field/7.x", "instruction": "What does hook_field_purge_field do in Drupal 7 and when is it executed?", "context": "", "response": "function hook_field_purge_field($field): Invoked in all modules after field configuration is deleted from the database, hook_field_storage_purge_field() is executed, and field info cache is cleared, allowing modules to respond to field purge.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-993361cf2a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.module/function/_aggregator_has_categories/7.x", "instruction": "What does the function _aggregator_has_categories do in Drupal 7?", "context": "", "response": "function _aggregator_has_categories(): Determines whether aggregator categories exist and the user has access to them.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-997ec19fb8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/constant/USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL/7.x", "instruction": "What does the constant USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL indicate in Drupal 7?", "context": "", "response": "define('USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL', 2);: defines the value 2 for the registration mode in which visitors can create accounts but they are not activated until an administrator approves them.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-9984a7b144", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.mimetypes.inc/function/file_default_mimetype_mapping/7.x", "instruction": "What does the function file_default_mimetype_mapping() return in Drupal 7?", "context": "", "response": "function file_default_mimetype_mapping(): returns an array that correlates MIME types with associated file extensions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-998d23be10", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.pages.inc/function/aggregator_page_source/7.x", "instruction": "What does the function aggregator_page_source do in Drupal 7 and what parameter does it receive?", "context": "", "response": "function aggregator_page_source($feed): Displays all items captured from a specific feed as a page callback, sets the title with the feed name, and returns the rendered list of items.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-998f2a616a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21options%21options.module/function/_options_form_to_storage/7.x", "instruction": "What does the function _options_form_to_storage do when transforming submitted form values into field storage format?", "context": "", "response": "function _options_form_to_storage($element): Converts the submitted values from the #value element to field storage format, applying checkbox conversions, removing the empty option, and ensuring at least one null value.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-99b7298480", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_build_js_cache/7.x", "instruction": "What does the function drupal_build_js_cache do in Drupal 7 and what value does it return?", "context": "", "response": "function drupal_build_js_cache($files): Aggregates JavaScript files into a single cached file in the files directory, using a content hash to force reload in browsers and proxies, and returns the file URI or FALSE if it could not be saved.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-99d2f44cdd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.install/function/comment_schema/7.x", "instruction": "What does the function comment_schema() define in the comment.install file in Drupal 7?", "context": "", "response": "function comment_schema(): Returns the database schema that describes the comment table and the node_comment_statistics statistics table for hook_schema().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-99d3ea61c5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_pre_render_markup/7.x", "instruction": "What does the function drupal_pre_render_markup do in Drupal 7 and what is its exact signature?", "context": "", "response": "function drupal_pre_render_markup($elements): is a #pre_render callback that copies the content of #markup to #children of the element.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-99ea5c39b8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_form_comment_form_alter/7.x", "instruction": "What does the function locale_form_comment_form_alter do in Drupal 7 when altering the comment form?", "context": "", "response": "function locale_form_comment_form_alter(&$form, &$form_state, $form_id): sets the comment language as the content language when the node type has multilingual support and registers a submit callback to handle the language field.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-99f3fff0c4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/_forum_node_check_node_type/7.x", "instruction": "What does the function _forum_node_check_node_type do in Drupal 7 and what does it return?", "context": "", "response": "function _forum_node_check_node_type($node): checks if the node content type has the taxonomy_forums field defined and returns TRUE if the node can be assigned to a forum.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9a59bb9b4e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.install/function/user_update_7010/7.x", "instruction": "What does the function user_update_7010 do in Drupal 7?", "context": "", "response": "function user_update_7010(): updates the signature_format column in the users table to allow NULL, replaces the format with NULL when the signature is empty, and fixes nonexistent text formats using the site default value.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9a5d107f59", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.manager.inc/function/theme_update_manager_update_form/7.x", "instruction": "What does the function theme_update_manager_update_form do in Drupal 7?", "context": "", "response": "function theme_update_manager_update_form($variables): generates the HTML for the first page of the project update process.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9a78980eac", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_vocabulary_get_names/7.x", "instruction": "What does the function taxonomy_vocabulary_get_names do in Drupal 7?", "context": "", "response": "function taxonomy_vocabulary_get_names(): Returns an associative array of objects indexed by the vocabulary machine name, including the name, machine name, and ID of each vocabulary.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9a792a6ec4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.install/function/comment_update_7006/7.x", "instruction": "What does the function comment_update_7006 do in Drupal 7 and how does it migrate the comment field data?", "context": "", "response": "function comment_update_7006(&$sandbox): migrates the comment field data to field storage and removes the old fields upon completion.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9a93470fe9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/external_documentation%21developer%21globals.php/global/menu_admin/7.x", "instruction": "What does the global variable $menu_admin do in Drupal 7?", "context": "", "response": "global $menu_admin;: indicates that a menu administrator is performing a menu access check.", "tags": ["api-reference", "global"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9a94922923", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_pre_render_styles/7.x", "instruction": "What does the function drupal_pre_render_styles do in Drupal 7 and how does it convert CSS elements into XHTML tags?", "context": "", "response": "function drupal_pre_render_styles($elements): It is a #pre_render callback that aggregates and adds CSS files, generating LINK or STYLE tags based on the group type, adding a query string for cache control, and handling browser limits like IE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9a9605f8cd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_login/7.x", "instruction": "What does the user_login function do in Drupal 7?", "context": "", "response": "function user_login($form, &$form_state): builds the main user login form, redirects to profile if already authenticated, and returns the form structure with name, password fields, validators and submit button.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9a9cf9a26f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.admin.inc/function/filter_admin_overview_submit/7.x", "instruction": "What does the filter_admin_overview_submit function do in Drupal 7 when submitting the text format administration form?", "context": "", "response": "function filter_admin_overview_submit($form, &$form_state): saves the order of text formats by updating their weights in the database and displays a confirmation message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9aa70d81be", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.module/function/aggregator_remove/7.x", "instruction": "What does the aggregator_remove function do in Drupal 7?", "context": "", "response": "function aggregator_remove($feed): Removes all items from a feed, invokes hook_aggregator_remove for all modules, and resets the checked, hash, etag and modified fields in the aggregator_feed table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9ab58867ca", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_retrieve_file/7.x", "instruction": "What does the system_retrieve_file function do in Drupal 7 and what does it return based on the value of $managed?", "context": "", "response": "function system_retrieve_file($url, $destination = NULL, $managed = FALSE, $replace = FILE_EXISTS_RENAME): Downloads a remote file via drupal_http_request and saves it locally, registering the file in the database if $managed is TRUE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9abcf3954b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/theme_checkboxes/7.x", "instruction": "What does the theme_checkboxes function do in Drupal 7 and what does it return?", "context": "", "response": "function theme_checkboxes($variables): generates HTML for a set of checkbox form elements, wrapping children in a with attributes like id, class and title.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9acdaa039d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.admin.inc/function/aggregator_form_category_validate/7.x", "instruction": "What does the aggregator_form_category_validate function do in Drupal 7 and what validation does it perform on the aggregator category form?", "context": "", "response": "function aggregator_form_category_validate($form, &$form_state): Validates the aggregator category form by checking that the title is unique and showing an error if another category with the same name already exists when saving.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9ad9983e7a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_add_region_content/7.x", "instruction": "What does the drupal_add_region_content function do in Drupal 7?", "context": "", "response": "function drupal_add_region_content($region = NULL, $data = NULL): stores content in a region and returns the static array with all accumulated content.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9ada8c8850", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7054/7.x", "instruction": "What does the system_update_7054 function do in Drupal?", "context": "", "response": "function system_update_7054(): Removes the cache_*.headers columns from cache tables and recreates the tables with a new description.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9afa66bd32", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/theme_system_themes_page/7.x", "instruction": "What HTML does the theme_system_themes_page function generate for the Appearance page in Drupal 7?", "context": "", "response": "function theme_system_themes_page($variables): Returns the HTML that displays the list of themes grouped on the Appearance page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9b1f2ac528", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7069/7.x", "instruction": "What does the system_update_7069 function do in a Drupal 7 update?", "context": "", "response": "function system_update_7069(): removes the obsolete 'site_offline' variable from the system.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9b32cd04b4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.install/function/openid_requirements/7.x", "instruction": "What does openid_requirements check in Drupal 7 when running at runtime and what requirements does it report about the math libraries?", "context": "", "response": "function openid_requirements($phase): Implements hook_requirements() and checks for the presence of PHP BC Math or GMP Math libraries, reporting an error if both are missing, a warning if only GMP is missing, or OK if GMP is available.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9b36e9ebf7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.install/function/menu_update_7003/7.x", "instruction": "What does the menu_update_7003 function do in Drupal 7 and what parameters does it receive?", "context": "", "response": "function menu_update_7003(&$sandbox): Adds missing custom menus to the list of active menus and clears the menu cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9b3bc53cda", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_cron/7.x", "instruction": "What does the system_cron() function do in Drupal 7?", "context": "", "response": "function system_cron(): Removes old rows from the flood and batch tables, deletes old temporary files, and clears expired cache entries.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9b4dc0d5eb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21tracker%21tracker.module/function/tracker_node_update/7.x", "instruction": "What does the tracker_node_update function do that implements hook_node_update in Drupal 7?", "context": "", "response": "function tracker_node_update($node, $arg = 0): adds tracking information for the updated node by calling _tracker_add with its nid, uid, and changed timestamp.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9b521be290", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_admin_paths/7.x", "instruction": "What does the book_admin_paths function do in Drupal 7 and when does it return node schema paths as admin paths?", "context": "", "response": "function book_admin_paths(): returns an array with the paths 'node/*/outline' and 'node/*/outline/remove' marked as TRUE when the node_admin_theme variable is enabled, indicating that those routes are admin paths.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9b61a6f025", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21language.inc/function/language_types_configurable/7.x", "instruction": "What does the language_types_configurable function return and how does the $stored parameter influence its result?", "context": "", "response": "function language_types_configurable($stored = TRUE): Returns an array with the names of configurable language types, obtaining them from the 'language_types' variable if $stored is TRUE or from the actual definitions if it is FALSE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9b69918fd7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/filter_dom_serialize_escape_cdata_element/7.x", "instruction": "How to escape CDATA sections in a DOM element using filter_dom_serialize_escape_cdata_element in Drupal 7?", "context": "", "response": "function filter_dom_serialize_escape_cdata_element($dom_document, $dom_element, $comment_start = '//', $comment_end = ''): Adds opening and closing comments around sections within a DOM element to prevent HTML 4 browsers from throwing exceptions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9b6dc28c34", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.module/function/field_modules_enabled/7.x", "instruction": "What does the function field_modules_enabled do when modules are enabled in Drupal 7?", "context": "", "response": "function field_modules_enabled($modules): Implements hook_modules_enabled and updates the 'active' status of fields by calling field_sync_field_status.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9b77c52d74", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/constant/BLOCK_VISIBILITY_NOTLISTED/7.x", "instruction": "What is the value of the constant BLOCK_VISIBILITY_NOTLISTED in Drupal 7 and what does it mean for block visibility?", "context": "", "response": "define('BLOCK_VISIBILITY_NOTLISTED', 0);: Shows the block on all pages except those explicitly listed.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-9b7f3fe99c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.api.php/function/hook_update_index/7.x", "instruction": "What does the function hook_update_index() do in Drupal 7?", "context": "", "response": "function hook_update_index(): Updates the module's search index during each cron run, allowing content to be added to the index via search_index().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9b906197e1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/drupal_validate_form/7.x", "instruction": "What does the drupal_validate_form function do in Drupal 7 and what parameters does it receive?", "context": "", "response": "function drupal_validate_form($form_id, &$form, &$form_state): validates the form data submitted by the user stored in $form_state['values'] and executes the associated validation handlers.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9ba65715ef", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/theme_system_admin_index/7.x", "instruction": "What does the function theme_system_admin_index do in Drupal 7 and what does it return?", "context": "", "response": "function theme_system_admin_index($variables): Returns the HTML of the administration panel page, organizing menu items by module in columns with automatic alternation.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9be311de43", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_view/7.x", "instruction": "What does the function node_view() do in Drupal 7 and what array does it return for rendering a node?", "context": "", "response": "function node_view($node, $view_mode = 'full', $langcode = NULL): Generates a render array for the given node, populates $node->content via node_build_content(), adds contextual links, and allows other modules to alter it via hook_node_view_alter() before returning the build.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9bfc783bdb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/external_documentation%21developer%21globals.php/global/base_root/7.x", "instruction": "What does the global variable $base_root contain in Drupal 7 and what does it represent?", "context": "", "response": "global $base_root;: Stores the root URL of the host, excluding the path.", "tags": ["api-reference", "global"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9c08c0fa19", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21field_sql_storage%21field_sql_storage.install/function/_update_7000_field_sql_storage_write/7.x", "instruction": "How does the function _update_7000_field_sql_storage_write write field data directly to SQL storage in Drupal 7?", "context": "", "response": "function _update_7000_field_sql_storage_write($entity_type, $bundle, $entity_id, $revision_id, $field_name, $data): Deletes existing records from the field_data and field_revision tables for the given entity and then inserts the new field data provided in $data for each language and delta.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9c0dd02535", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/theme_system_date_time_settings/7.x", "instruction": "What does the function theme_system_date_time_settings do in Drupal 7?", "context": "", "response": "function theme_system_date_time_settings($variables): Returns the HTML for the date and time settings form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9c12e38279", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21translation%21translation.module/function/translation_menu/7.x", "instruction": "How is the node translation route registered in Drupal via hook_menu?", "context": "", "response": "function translation_menu(): Defines a local task menu item at node/%node/translate to display the node translation interface.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9c1494d10a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21updater.inc/class/Updater/7.x", "instruction": "How does the method getUpdaterFromDirectory determine which Updater class can operate on an extracted Drupal project directory?", "context": "", "response": "public static function getUpdaterFromDirectory($directory): Gets the list of registered updater classes via drupal_get_updaters() and returns the first one whose class implements canUpdateDirectory() for the given directory, throwing UpdaterException if none match.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-9c2b8e8ab5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_get_parents/7.x", "instruction": "What does the function taxonomy_get_parents do in Drupal 7 and what does it return when passed a tid?", "context": "", "response": "function taxonomy_get_parents($tid): Returns an array of term objects that are the parents of the given term, or an empty array if no parents are found.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9c87c120e6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_view/7.x", "instruction": "How is the function comment_view used to generate a render array for a comment in Drupal 7?", "context": "", "response": "function comment_view($comment, $node, $view_mode = 'full', $langcode = NULL): Generates a structured array to render the given comment, building its content and adding theme information, prefixes and suffixes according to the view mode and comment status.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9c9b7cc60c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.fetch.inc/function/_update_create_fetch_task/7.x", "instruction": "What does _update_create_fetch_task do in Drupal 7 and what condition must be met to create a new fetch task?", "context": "", "response": "function _update_create_fetch_task($project): It adds a task to the queue to fetch a project's version history only if there is not already a pending task for that project in the cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9cb4781547", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_entity_prepare_view/7.x", "instruction": "What does hook_entity_prepare_view do and when should it be used in Drupal 7?", "context": "", "response": "function hook_entity_prepare_view($entities, $type, $langcode): Allows operating on multiple entities while they are being prepared for display, especially when attaching data in entity_load is not appropriate.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9cc47ce264", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/db_table_exists/7.x", "instruction": "How to check if a table exists in the Drupal 7 database using the db_table_exists function?", "context": "", "response": "function db_table_exists($table): Checks if a table exists in the database and returns TRUE if it exists, FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9ccfca9be8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21rdf%21rdf.api.php/function/hook_rdf_namespaces/7.x", "instruction": "What should the hook_rdf_namespaces implementation in Drupal 7 return to define new RDF namespace prefixes?", "context": "", "response": "function hook_rdf_namespaces(): Returns an associative array where the key is the namespace prefix and the value is its URI, allowing modules to define namespaces for RDF mappings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9cd7cd8c32", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.module/function/_element_validate_number/7.x", "instruction": "What does the _element_validate_number function do in Drupal 7?", "context": "", "response": "function _element_validate_number($element, &$form_state): It is a deprecated form element validator for numbers that delegates validation to element_validate_number().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9ceabec7b3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.module/function/menu_save/7.x", "instruction": "How to save a custom menu in Drupal 7 using the menu_save function?", "context": "", "response": "function menu_save($menu): Saves the $menu array to the menu_custom table, updates the menu cache, and if new, adds it to the active menus list via variables and hooks.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9d014c14ad", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21mysql%21database.inc/constant/MYSQL_IDENTIFIER_QUOTE_CHARACTER_DEFAULT/7.x", "instruction": "What is the default value of the MYSQL_IDENTIFIER_QUOTE_CHARACTER_DEFAULT constant in Drupal 7?", "context": "", "response": "define('MYSQL_IDENTIFIER_QUOTE_CHARACTER_DEFAULT', '`');: Defines the default character used to delimit identifiers in MySQL, which is the backtick (`).", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-9d09ac30d7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.core.inc/function/install_select_profile_form/7.x", "instruction": "What does the install_select_profile_form function do in Drupal 7 and what parameters does it receive?", "context": "", "response": "function install_select_profile_form($form, &$form_state, $profile_files): Builds the installation profile selection form, iterating over .profile files, skipping hidden ones, and generating alphabetically ordered radio buttons with core profiles first.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9d1d4b4957", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21blog%21blog.pages.inc/function/blog_page_user/7.x", "instruction": "What does the blog_page_user function do in Drupal 7 and how does it generate the page of recent blog entries for a user?", "context": "", "response": "function blog_page_user($account): Displays a Drupal page with the recent blog entries of a given user.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9d2689016f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/function/_locale_import_message/7.x", "instruction": "What does the _locale_import_message function do in Drupal 7 and how is it used to generate error messages during locale file import?", "context": "", "response": "function _locale_import_message($message, $file, $lineno = NULL): Sets a translated error message indicating a problem parsing a locale file, optionally including the filename and line number.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9d322da9b3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_form_field_ui_field_edit_form_submit/7.x", "instruction": "What is the implementation and function of user_form_field_ui_field_edit_form_submit in Drupal 7?", "context": "", "response": "function user_form_field_ui_field_edit_form_submit($form, &$form_state): It is an additional submit handler that sets 'user_register_form' to 1 when the field instance is required.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9d48806ecc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/timer_start/7.x", "instruction": "How to start a timer with a specific name in Drupal 7?", "context": "", "response": "function timer_start($name): Starts a timer with the given name and accumulates intervals if started and stopped multiple times.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9d59d3ae19", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21image.inc/function/image_scale/7.x", "instruction": "What does the image_scale function in Drupal 7 do and what is its signature?", "context": "", "response": "function image_scale(stdClass $image, $width = NULL, $height = NULL, $upscale = FALSE): Scales an image maintaining aspect ratio, returning TRUE on success and FALSE on failure.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9d6c39f132", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.tokens.inc/function/node_tokens/7.x", "instruction": "What does the node_tokens function in Drupal 7 do and what node tokens does it provide?", "context": "", "response": "function node_tokens($type, $tokens, array $data = array(), array $options = array()): Implements hook_tokens() and generates replacements for node tokens such as nid, vid, tnid, type, title, body, summary, language, url, edit-url, author, created, and changed, in addition to handling chained tokens for author and dates.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9dbc583363", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_preview/7.x", "instruction": "What does the comment_preview function in Drupal 7 do?", "context": "", "response": "function comment_preview($comment): Generates a comment preview by loading the associated node, assigning user and date information, building the comment rendering in preview mode, and returning a form that includes the preview and parent comment or full node.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9dd821900a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.pages.inc/function/node_revision_delete_confirm_submit/7.x", "instruction": "What does the node_revision_delete_confirm_submit function do when processing the node revision delete confirmation form submission in Drupal 7?", "context": "", "response": "function node_revision_delete_confirm_submit($form, &$form_state): Deletes the specified node revision, logs the action in watchdog, displays a confirmation message, and redirects to the node or its revision list depending on whether more revisions remain.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9de06d68fb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/vancode2int/7.x", "instruction": "What does the vancode2int function in Drupal 7 do and how does it decode a vancode to an integer?", "context": "", "response": "function vancode2int($c = '00'): Decodes a vancode (base36 string) to an integer by removing the first character and converting from base 36 to base 10.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9de910a407", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.compare.inc/function/_update_process_info_list/7.x", "instruction": "What does the _update_process_info_list function in the update module of Drupal 7 do?", "context": "", "response": "function _update_process_info_list(&$projects, $list, $project_type, $status): Populates a project data array by iterating over installed modules or themes, grouping them by project and status, omitting hidden ones, and recording the change time of .info files to invalidate the update cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9df3ea824e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.admin.inc/function/_aggregator_parse_opml/7.x", "instruction": "What does the _aggregator_parse_opml function do in Drupal 7 and what value does it return when parsing an OPML document?", "context": "", "response": "function _aggregator_parse_opml($opml): parses an OPML document extracting
elements with text and xmlurl attributes as an array of feeds with title and URL, or NULL if parsing fails.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9dfbb3c668", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/constant/COMMENT_MODE_FLAT/7.x", "instruction": "What value does the COMMENT_MODE_FLAT constant have in Drupal 7 and what comment behavior does it represent?", "context": "", "response": "define('COMMENT_MODE_FLAT', 0);: defines the comment display mode as an expanded flat list with numeric value 0.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-9dfbf3b6b3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_field_formatter_info/7.x", "instruction": "What does the taxonomy_field_formatter_info function do in the taxonomy module of Drupal 7?", "context": "", "response": "function taxonomy_field_formatter_info(): Implements hook_field_formatter_info() and returns an array with formatter information for taxonomy term reference fields.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9e02392c88", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.pages.inc/function/aggregator_page_category_form/7.x", "instruction": "What does the aggregator_page_category_form function do in Drupal 7 and how does it display aggregated elements?", "context": "", "response": "function aggregator_page_category_form($form, $form_state, $category): Displays a form with aggregated elements in a specific category and returns the rendered list of elements for the feed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9e093dd620", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21image.inc/function/image_toolkit_invoke/7.x", "instruction": "What is the image_toolkit_invoke function used for in Drupal 7 and how does it invoke methods of the active image toolkit?", "context": "", "response": "function image_toolkit_invoke($method, stdClass $image, array $params = array()): invokes the specified method using the currently selected image toolkit.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9e17dff053", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21blog%21blog.module/function/blog_page_user_access/7.x", "instruction": "What does the blog_page_user_access function do in Drupal 7 and under what conditions does it allow access to a user's blog pages?", "context": "", "response": "function blog_page_user_access($account): checks that the account has a uid, permission to access content, and can already create blog entries or has existing posts.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9e223b767f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.updater.inc/class/ModuleUpdater/7.x", "instruction": "What does the static canUpdate method of the ModuleUpdater class do in Drupal 7?", "context": "", "response": "public static function canUpdate($project_name): Returns TRUE if drupal_get_path finds the path for the module specified by $project_name, indicating the module can be updated.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-9e768e577a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.module/constant/UPDATE_UNKNOWN/7.x", "instruction": "What does the UPDATE_UNKNOWN constant indicate in the update module of Drupal 7?", "context": "", "response": "define('UPDATE_UNKNOWN', -2);: indicates that no update data was found available for a project.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-9e83c0ee9b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.field.inc/function/image_field_update/7.x", "instruction": "What does the Drupal 7 function image_field_update do and in what context does it execute?", "context": "", "response": "function image_field_update($entity_type, $entity, $field, $instance, $langcode, &$items): Implements hook_field_update delegating the update to file_field_update.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9e854f9ad6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/image_theme/7.x", "instruction": "What does the image_theme() function return in Drupal 7 and what theme hooks does it define?", "context": "", "response": "function image_theme(): Implements hook_theme() and returns an array that defines the theme hooks of image.module, image.admin.inc and image.field.inc (image_style, image_style_list, image_style_effects, image_style_preview, image_anchor, image_resize_summary, image_scale_summary, image_crop_summary, image_rotate_summary, image_widget and image_formatter).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9e8daab22b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/_node_add_access/7.x", "instruction": "How does the _node_add_access function determine if a user has permission to access the node creation page in Drupal 7?", "context": "", "response": "function _node_add_access(): Checks if the user has the 'create' permission for any content type with a defined form, and if not, grants access if they have the 'administer content types' permission.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9eabdfa75a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/constant/DRUPAL_OPTIONAL/7.x", "instruction": "What is the value of the DRUPAL_OPTIONAL constant in Drupal 7?", "context": "", "response": "define('DRUPAL_OPTIONAL', 1);: Defines the DRUPAL_OPTIONAL constant with the value 1, used to mark optional options in forms and settings.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-9eb7151291", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21unicode.inc/function/_mime_header_decode/7.x", "instruction": "How does the _mime_header_decode function decode MIME header data within mime_header_decode() in Drupal 7?", "context": "", "response": "function _mime_header_decode($matches): Decodes encoded data from a MIME header using base64 or quoted-printable and converts it to UTF-8 if necessary.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9eba2d170c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.admin.inc/function/theme_image_style_list/7.x", "instruction": "What does the theme_image_style_list function do and how is it used to generate the HTML of the page that lists image styles in Drupal 7?", "context": "", "response": "function theme_image_style_list($variables): Returns the HTML of the page that displays the list of all available image styles.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9ef724e187", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21module.inc/function/module_hook_info/7.x", "instruction": "What does the module_hook_info function do in Drupal 7?", "context": "", "response": "function module_hook_info(): Retrieves a list of hooks declared via hook_hook_info().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9f038562fa", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_archiver_info/7.x", "instruction": "How are available archivers declared in Drupal 7 via hook_archiver_info?", "context": "", "response": "function hook_archiver_info(): Declares archiver classes to the system for packaging and unpacking files such as zip or tar.gz, specifying class name, supported extensions and optional weight.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9f069e2d61", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/constant/DRUPAL_CRON_DEFAULT_THRESHOLD/7.x", "instruction": "What is the value and purpose of the constant DRUPAL_CRON_DEFAULT_THRESHOLD in Drupal 7?", "context": "", "response": "define('DRUPAL_CRON_DEFAULT_THRESHOLD', 10800);: Defines the default interval in seconds (10800, equivalent to 3 hours) for automatic cron executions.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-9f35fb21bf", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/constant/USERNAME_MAX_LENGTH/7.x", "instruction": "What is the value of the constant USERNAME_MAX_LENGTH in Drupal 7 and what is it used for?", "context": "", "response": "define('USERNAME_MAX_LENGTH', 60);: defines the maximum allowed length for the username field, set to 60 characters.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-9f6397ca45", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_block_info/7.x", "instruction": "What does the book_block_info() function of the Book module do in Drupal 7?", "context": "", "response": "function book_block_info(): Implements hook_block_info() and returns an array that defines the book navigation block with its title and cache settings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9f6471e3d3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/image_style_delete/7.x", "instruction": "What does the image_style_delete function of Drupal 7 do when deleting an image style and allowing a replacement style to be specified?", "context": "", "response": "function image_style_delete($style, $replacement_style_name = ''): Deletes an image style, optionally replaces it with another style, and returns TRUE if the operation succeeds.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9f67c64849", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_field_info/7.x", "instruction": "What does the taxonomy_field_info function do in Drupal 7?", "context": "", "response": "function taxonomy_field_info(): Implements hook_field_info() to define the 'taxonomy_term_reference' field, specifying its label, description, default widget, formatter, and allowed values configuration that includes vocabulary trees.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9f729771af", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21path%21path.admin.inc/function/path_admin_delete_confirm_submit/7.x", "instruction": "What does the path_admin_delete_confirm_submit function of Drupal 7 do when processing the deletion confirmation of a path?", "context": "", "response": "function path_admin_delete_confirm_submit($form, &$form_state): is the submit handler of the path deletion confirmation form that, if confirmed, deletes the path via path_delete and redirects to the path list.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9f780f9bc9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_menu/7.x", "instruction": "What does the system_menu() function do in the system module of Drupal 7 and what menu elements does it define?", "context": "", "response": "function system_menu(): Implements hook_menu() and returns an $items array that registers system routes such as file downloads, AJAX callbacks, timezone, and sections for modules, themes, configuration, and reports administration.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9f7a733c86", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_site_offline/7.x", "instruction": "What does the drupal_site_offline() function do in Drupal 7 and what is its typical use?", "context": "", "response": "function drupal_site_offline(): Delivers a \"site is under maintenance\" message to the browser by calling drupal_deliver_page(MENU_SITE_OFFLINE).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9f7c1b3e00", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.api.php/function/hook_block_configure/7.x", "instruction": "What does hook_block_configure do in Drupal 7 and what value should it return?", "context": "", "response": "function hook_block_configure($delta = ''): Defines a configuration form for a block, returning a form array with custom elements when additional configuration is needed beyond the standard block module elements.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9f908cc9fe", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.admin.inc/function/field_ui_display_overview_row_region/7.x", "instruction": "What region does the field_ui_display_overview_row_region function return for a row of type 'field' or 'extra_field' on the 'Manage display' screen in Drupal 7?", "context": "", "response": "function field_ui_display_overview_row_region($row): returns 'hidden' when the row's format type is hidden, or 'visible' otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9f9c63d0e7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21ajax.inc/function/ajax_command_alert/7.x", "instruction": "What does the ajax_command_alert function do in Drupal 7 and what value does it return?", "context": "", "response": "function ajax_command_alert($text): Creates an Ajax 'alert' command that instructs the client to display a JavaScript alert dialog and returns an array suitable for ajax_render().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9fa27b07b7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dblog%21dblog.module/function/_dblog_get_message_types/7.x", "instruction": "What does the _dblog_get_message_types function of the dblog module do in Drupal 7?", "context": "", "response": "function _dblog_get_message_types(): retrieves unique message types defined in the watchdog table and returns them as an ordered list.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9fb19008ec", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21toolbar%21toolbar.module/function/toolbar_get_menu_tree/7.x", "instruction": "What does the toolbar_get_menu_tree() function do in Drupal 7 and what type of value does it return?", "context": "", "response": "function toolbar_get_menu_tree(): Retrieves only the top-level elements under the 'admin' path and returns an array representing the menu tree of those elements.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9fc8c4d96b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/constant/BLOCK_REGION_NONE/7.x", "instruction": "What does the BLOCK_REGION_NONE constant indicate in Drupal 7?", "context": "", "response": "define('BLOCK_REGION_NONE', -1);: indicates that a block is not enabled in any region and should not be displayed.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-9fe3167ffe", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/constant/FILE_NOT_EXECUTABLE/7.x", "instruction": "What value and purpose does the FILE_NOT_EXECUTABLE constant have in Drupal 7?", "context": "", "response": "define('FILE_NOT_EXECUTABLE', 128);: indicates that a file does not have execute permissions (value 128) and is used in permission checks during installation.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-9fee089088", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21tracker%21tracker.module/function/tracker_comment_publish/7.x", "instruction": "What does the tracker_comment_publish function do in Drupal 7 and what hook does it implement?", "context": "", "response": "function tracker_comment_publish($comment): Implements hook_comment_publish() and registers published nodes by calling _tracker_add() with the comment's nid, uid, and changed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9fef4e0fda", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21form.api.php/function/callback_batch_finished/7.x", "instruction": "What does the callback_batch_finished function do in Drupal 7?", "context": "", "response": "function callback_batch_finished($success, $results, $operations): Finishes a batch process showing a message with the results if it succeeded or an error with the failed operation if not.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-9ff9602b37", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_uri_normalize_dot_segments/7.x", "instruction": "What does the file_uri_normalize_dot_segments function do in Drupal 7?", "context": "", "response": "function file_uri_normalize_dot_segments($uri): Normalizes dot segments in a URI by removing them and using slashes as directory separators.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a0043db1c6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_update_dependencies/7.x", "instruction": "How to implement hook_update_dependencies in Drupal 7 to declare dependencies between a module's update functions and those of other modules?", "context": "", "response": "function hook_update_dependencies(): Returns an array describing which updates from other modules should run before or after the module's own updates, allowing the update system to determine the correct order and detect missing dependencies.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a0091ede1d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.admin.inc/function/_locale_languages_configure_form_language_table/7.x", "instruction": "What does the _locale_languages_configure_form_language_table function do in Drupal 7?", "context": "", "response": "function _locale_languages_configure_form_language_table(&$form, $type): Builds a form table for configuring language detection providers of a specific type, including weights, enable checkboxes, descriptions, and configuration links.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a00a7c1a7d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/db_select/7.x", "instruction": "How to get a new SelectQuery object for the active database in Drupal 7?", "context": "", "response": "function db_select($table, $alias = NULL, array $options = array()): Returns a new SelectQuery object for the active connection, using the indicated base table and options.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a00edcfd76", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_themes_page/7.x", "instruction": "What does the system_themes_page function do in Drupal 7 and how does it generate the theme list for the appearance administration page?", "context": "", "response": "function system_themes_page(): It is a menu callback that collects all themes, determines their status, builds operation links, and returns the themed representation of the themes administration page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a012392db6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/function/_locale_import_one_string/7.x", "instruction": "What does the _locale_import_one_string function do in Drupal 7 and how does it process the different string import operations to the database or memory?", "context": "", "response": "function _locale_import_one_string($op, $value = NULL, $mode = NULL, $lang = NULL, $file = NULL, $group = 'default'): Imports a translation string into the database or memory according to the operation specified in $op (such as 'db-store', 'db-report', 'mem-store', or 'mem-report'), handling PO file headers, plural formulas, and change reports.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a02cc8d3e6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_form_block_add_block_form_alter/7.x", "instruction": "What does the node_form_block_add_block_form_alter function do in Drupal 7?", "context": "", "response": "function node_form_block_add_block_form_alter(&$form, &$form_state): Adds node-type-specific visibility options to the add block form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a03a788230", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.api.php/function/hook_openid_response/7.x", "instruction": "How to implement hook_openid_response($response, $account) to act after a successful OpenID login?", "context": "", "response": "function hook_openid_response($response, $account): Allows modules to act after a successful OpenID login.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a03ba96acd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/element_validate_number/7.x", "instruction": "What does the element_validate_number function do in Drupal 7 and what exactly does it validate?", "context": "", "response": "function element_validate_number($element, &$form_state): Validates that the value of a numeric form element is a number, setting a form error if it is not.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a055dedfc9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_comment_delete/7.x", "instruction": "What does the forum_comment_delete function do when deleting a comment in the Forum module of Drupal 7?", "context": "", "response": "function forum_comment_delete($comment): Updates the forum index by calling _forum_update_forum_index with the nid of the deleted comment.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a07f26b581", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_local_tabs/7.x", "instruction": "What does the menu_local_tabs function return in Drupal 7?", "context": "", "response": "function menu_local_tabs(): Returns a renderable element for primary and secondary tabs.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a07f3e4126", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21update.inc/function/update_fix_d7_block_deltas/7.x", "instruction": "What does the update_fix_d7_block_deltas function do in Drupal 7 and what is it used for during the update?", "context": "", "response": "function update_fix_d7_block_deltas(&$sandbox, $renamed_deltas, $moved_deltas): is a helper function that modules can use to help with the transformation of numeric deltas to string deltas of blocks during the update from 6.x to 7.x.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a08431aad9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/themes%21garland%21template.php/function/garland_breadcrumb/7.x", "instruction": "What does the garland_breadcrumb function do in the Garland theme of Drupal 7?", "context": "", "response": "function garland_breadcrumb($variables): generates the HTML markup of the breadcrumb trail adding an invisible 'You are here' heading and a container with the breadcrumb elements separated by ›, only if the breadcrumb array is not empty.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a08703cfa1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_modules_uninstall_confirm_form/7.x", "instruction": "How does system_modules_uninstall_confirm_form generate the uninstall confirmation form in Drupal 7?", "context": "", "response": "function system_modules_uninstall_confirm_form($storage): Builds a confirmation form that lists the modules to uninstall and warns that all data from those modules will be lost.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a09f29b27f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.field.inc/function/image_field_presave/7.x", "instruction": "What does the image_field_presave function do in Drupal?", "context": "", "response": "function image_field_presave($entity_type, $entity, $field, $instance, $langcode, &$items): implements hook_field_presave to calculate and set the dimensions (width and height) of each field image if not yet defined, using the image file information.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a0aff915f0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/authorize.php/function/authorize_access_allowed/7.x", "instruction": "How does Drupal determine if the current user has permission to run authorize.php?", "context": "", "response": "function authorize_access_allowed(): checks the allow_authorize_operations variable and the 'administer software updates' permission to decide whether access to authorize.php is allowed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a0ef2aec1d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_assign_owner_action_validate/7.x", "instruction": "What does the node_assign_owner_action_validate function do in Drupal 7 and what form field does it validate?", "context": "", "response": "function node_assign_owner_action_validate($form, $form_state): verifies that the username entered in owner_name exists in the users table and sets a form error if it is not valid.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a10053448d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_delete/7.x", "instruction": "What does the poll_delete function do in Drupal 7 and what tables does it clean when deleting a node?", "context": "", "response": "function poll_delete($node): deletes the poll records, options, and votes associated with the specified node.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a118ec1e65", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.install/function/forum_install/7.x", "instruction": "What does the forum_install function do when installing the forum module in Drupal 7?", "context": "", "response": "function forum_install(): updates the forum module weight to 1 to load it after taxonomy and configures the default options for forum nodes with only status.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a11b10862e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.api.php/function/hook_user_presave/7.x", "instruction": "What does the hook_user_presave hook do in Drupal 7 and what is its signature?", "context": "", "response": "function hook_user_presave(&$edit, $account, $category): Runs before creating or updating a user account, allowing modification of $edit and $account and storing data in the serialized {users}.data column.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a11f7db939", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.admin.inc/function/field_ui_field_overview_row_region/7.x", "instruction": "What is the return value of field_ui_field_overview_row_region based on the row type in Drupal 7?", "context": "", "response": "function field_ui_field_overview_row_region($row): returns 'main' for 'field'/'extra_field' types, and 'main' or 'add_new' for 'add_new_field' depending on whether it has a label.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a1331b22e7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_theme_default/7.x", "instruction": "What does the system_theme_default function do when a theme is selected from the administration in Drupal 7?", "context": "", "response": "function system_theme_default(): Sets the site default theme, enabling it if it was disabled, rebuilds the menu, and displays a status message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a1530ef36c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_system_theme_info/7.x", "instruction": "What does the hook_system_theme_info hook do in Drupal 7 and when should it be used?", "context": "", "response": "function hook_system_theme_info(): returns an associative array with additional themes provided by modules, used only for testing and invoked from _system_rebuild_theme_data().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a16e1659f9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_field_language_alter/7.x", "instruction": "What does the function locale_field_language_alter do in Drupal 7?", "context": "", "response": "function locale_field_language_alter(&$display_language, $context): Implements hook_field_language_alter and applies Locale language fallback rules when enabled and Locale is registered as a translation handler.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a17d3eabca", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.install/function/taxonomy_update_7007/7.x", "instruction": "What does the function taxonomy_update_7007 do in Drupal?", "context": "", "response": "function taxonomy_update_7007(): Adds an index to the name column of the taxonomy_term_data table to speed up the taxonomy_get_term_by_name function.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a1a4b553e3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.admin.inc/function/node_filters/7.x", "instruction": "What node administration filters does the node_filters() function return in Drupal 7 and what options does it include?", "context": "", "response": "function node_filters(): Returns an associative array with administrative filters applicable to nodes: status (published, unpublished, promoted, sticky and translation states if the translation module exists), node type and language (if there is a language list).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a1ac5f6621", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.install/function/poll_update_7001/7.x", "instruction": "What does the poll_update_7001 update function do in Drupal 7?", "context": "", "response": "function poll_update_7001(): Updates the poll schema to use the poll_choice primary key as the vote identifier, adds the chid column, converts existing votes, removes invalid votes, renames the chorder column to weight, and renames the {poll_choices} and {poll_votes} tables to {poll_choice} and {poll_vote}.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a1ad0f3d7e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.admin.inc/function/profile_admin_settings_autocomplete/7.x", "instruction": "What does the function profile_admin_settings_autocomplete do in Drupal 7?", "context": "", "response": "function profile_admin_settings_autocomplete($string): Returns a pipe-separated string of autocomplete suggestions for profile categories.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a1ad10501d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_type_tableselect_value/7.x", "instruction": "What does the function form_type_tableselect_value do in Drupal 7?", "context": "", "response": "function form_type_tableselect_value($element, $input = FALSE): Determines the value that will appear in $form_state['values'] for a tableselect form element, using the default value or the provided input.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a1bb466071", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_admin_compact_page/7.x", "instruction": "How is the administrative menu compact mode activated or deactivated in Drupal via system_admin_compact_page?", "context": "", "response": "function system_admin_compact_page($mode = 'off'): Saves a user cookie to indicate whether the administrative menu should be displayed in compact mode ('on') or not ('off'), and then redirects the user.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a1bbe96ae8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_node_type_delete/7.x", "instruction": "What does the function comment_node_type_delete do in Drupal 7 when a node type is deleted?", "context": "", "response": "function comment_node_type_delete($info): Deletes the comment field bundle and clears the comment configuration variables associated with the node type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a1fbd84e74", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_pre_render_link/7.x", "instruction": "What does the drupal_pre_render_link function do in Drupal?", "context": "", "response": "function drupal_pre_render_link($element): It is a pre-render callback that processes a link element to convert it into its HTML markup (#markup) via the l() function, handling options, attributes, IDs, and AJAX integration.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a21c24273e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.admin.inc/function/field_ui_field_edit_form_submit/7.x", "instruction": "What does the field_ui_field_edit_form_submit form submission handler do in Drupal 7?", "context": "", "response": "function field_ui_field_edit_form_submit($form, &$form_state): Updates the field and instance configuration, handles the widget default value, displays a success message, and redirects to the next destination.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a228216336", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.form.inc/function/_field_form_state_parents/7.x", "instruction": "What does the _field_form_state_parents function return and what is it used for in the Drupal 7 field system?", "context": "", "response": "function _field_form_state_parents($parents, $field_name, $langcode): Builds and returns the key path within $form_state where field processing information is stored, handling backward compatibility for top-level fields.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a228c37400", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21language.inc/function/language_url_split_prefix/7.x", "instruction": "How does the language_url_split_prefix function split a path into language prefix and actual path in Drupal 7?", "context": "", "response": "function language_url_split_prefix($path, $languages): Parses the given path and returns the language object identified by the prefix along with the path without the prefix, or FALSE and the original path if no match.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a23290f907", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.module/function/profile_menu/7.x", "instruction": "What menu routes does the profile_menu function define in the Profile module of Drupal 7?", "context": "", "response": "function profile_menu(): Implements hook_menu() and declares routes for listing users, managing profile fields, autocompleting categories, and managing add, edit, and delete profile field forms.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a23bf292f2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dashboard%21dashboard.module/function/dashboard_system_info_alter/7.x", "instruction": "What does the dashboard_system_info_alter function do in Drupal 7?", "context": "", "response": "function dashboard_system_info_alter(&$info, $file, $type): Implements hook_system_info_alter to add dashboard regions to each theme and defines overlay_regions for displaying blocks in the overlay.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a249cca562", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_modules_uninstall_submit/7.x", "instruction": "What does the system_modules_uninstall_submit function do in Drupal?", "context": "", "response": "function system_modules_uninstall_submit($form, &$form_state): Processes the module uninstallation form submission, uninstalling selected modules if confirmation is present, or storing values and rebuilding the form otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a24cf0640b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.pages.inc/function/search_form_submit/7.x", "instruction": "How does search_form_submit process the search form submission in Drupal?", "context": "", "response": "function search_form_submit($form, &$form_state): Processes a search form submission, validating the keys and redirecting to the results page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a2543cd9be", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_library/7.x", "instruction": "How does the function system_library implement hook_library() to define the core JavaScript and CSS libraries in Drupal 7?", "context": "", "response": "function system_library(): Defines and returns an array of libraries (such as jQuery, jQuery UI, Ajax, batch, progress, form, etc.) used by Drupal, including their JS/CSS files, dependencies, and versions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a263cac554", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/image_menu/7.x", "instruction": "What menu routes does the function image_menu define in the Image module of Drupal 7?", "context": "", "response": "function image_menu(): Implements hook_menu() to register image derivative generation routes (public and private) and image style administration routes (list, add, edit, delete, revert, and manage effects).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a2721ae4e6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.module/function/aggregator_cron/7.x", "instruction": "What does the function aggregator_cron do in Drupal 7?", "context": "", "response": "function aggregator_cron(): Implements hook_cron and queues news feeds for update when their refresh interval has elapsed, marking their queued timestamp and cleaning up those queued more than 6 hours ago assuming the update failed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a284456140", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_type_page_title/7.x", "instruction": "What does the function node_type_page_title do in Drupal?", "context": "", "response": "function node_type_page_title($type): Returns the unsanitized title of the node type edit form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a298651842", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_language_list/7.x", "instruction": "What does the function locale_language_list do in Drupal?", "context": "", "response": "function locale_language_list($field = 'name', $all = FALSE): Returns an array of language names, with the option to get all or only enabled ones, and using translated or native names.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a2ac246c44", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.module/function/menu_reset_item/7.x", "instruction": "How does the function menu_reset_item reset a system-defined menu link to its original values in Drupal 7?", "context": "", "response": "function menu_reset_item($link): Retrieves the link definition from hook_menu, combines it with mlid and has_children, and saves it via menu_link_save.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a2b47aca2f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/themes%21garland%21template.php/function/garland_preprocess_html/7.x", "instruction": "What does the garland_preprocess_html function of the Garland theme in Drupal 7 do?", "context": "", "response": "function garland_preprocess_html(&$variables): overrides or inserts variables in the HTML template of the Garland theme.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a2ba810fe8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.admin.inc/function/menu_edit_menu/7.x", "instruction": "What does the menu_edit_menu function do in Drupal 7?", "context": "", "response": "function menu_edit_menu($form, &$form_state, $type, $menu = array()): Builds the form that handles the addition or editing of a custom menu.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a2dc7a97d8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.authorize.inc/function/_update_batch_create_message/7.x", "instruction": "What does the _update_batch_create_message function do in Drupal 7?", "context": "", "response": "function _update_batch_create_message(&$project_results, $message, $success = TRUE): Adds a log message to the project results array with its success status.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a2dd956193", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_actions_delete_form/7.x", "instruction": "How does the system_actions_delete_form function build the confirmation form to delete an action in Drupal 7?", "context": "", "response": "function system_actions_delete_form($form, &$form_state, $action): Creates a confirmation form that includes a hidden field with the action ID and returns a confirm_form with warning message, redirect path, and delete/cancel buttons.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a2dec3e9e4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_help/7.x", "instruction": "What does the search_help function do in the Search module of Drupal 7?", "context": "", "response": "function search_help($path, $arg): Implements hook_help() and returns help text for routes 'admin/help#search', 'admin/config/search/settings', and 'search#noresults'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a2f646ca39", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_unmanaged_save_data/7.x", "instruction": "How do I save a string to a file without using Drupal 7's file API?", "context": "", "response": "function file_unmanaged_save_data($data, $destination = NULL, $replace = FILE_EXISTS_RENAME): Saves the given string to the specified destination without writing to the {file_managed} table or calling the file_* hooks.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a310291e71", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/misc%21typo3%21phar-stream-wrapper%21src%21PharStreamWrapper.php/class/PharStreamWrapper/7.x", "instruction": "What does the stream_open method of the PharStreamWrapper class do in Drupal 7 and how does it handle opening Phar files?", "context": "", "response": "public function stream_open($path, $mode, $options, &$opened_path = null): Validates the path with assert(), opens the Phar stream by internally calling fopen, applies a workaround for OPcache when it's an include/require, and returns true if the opening was successful.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-a31191513a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_user_cancel/7.x", "instruction": "How does the comment_user_cancel function handle comments of a user being deleted in Drupal 7?", "context": "", "response": "function comment_user_cancel($edit, $account, $method): Implements hook_user_cancel and depending on the method, unpublishes or reassigns to anonymous all comments of the cancelled user.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a31a899618", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.module/function/aggregator_category_load/7.x", "instruction": "How is an aggregator category loaded in Drupal using its ID?", "context": "", "response": "function aggregator_category_load($cid): Loads an aggregator category by its ID, using a static cache to avoid duplicate database queries.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a32e5aa8c0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/function/db_run_tasks/7.x", "instruction": "What does the db_run_tasks function do in Drupal 7?", "context": "", "response": "function db_run_tasks($driver): Runs verification tasks to ensure the database environment meets Drupal requirements, such as creating tables, stored procedures, and client encoding, and returns TRUE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a33d7ac544", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.admin.inc/function/theme_user_admin_roles/7.x", "instruction": "What does the theme_user_admin_roles function return in Drupal 7?", "context": "", "response": "function theme_user_admin_roles($variables): returns the HTML for the role order table and new role form, showing name, weight, and operations (edit role, edit permissions) with drag-and-drop functionality.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a350e70db2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_node_revision_delete/7.x", "instruction": "What does the hook_node_revision_delete hook do and when is it invoked in Drupal 7?", "context": "", "response": "function hook_node_revision_delete($node): Invoked after deleting a node revision from the node_revision table and before field_attach_delete_revision, allowing modules to respond to node revision deletion.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a36b891a3c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_process_weight/7.x", "instruction": "What behavior does the form_process_weight($element) function perform in Drupal 7?", "context": "", "response": "function form_process_weight($element): expands a weight element into a select or textfield depending on the number of options", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a39d4b5359", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/image_flush_caches/7.x", "instruction": "What does the image_flush_caches() function do in Drupal 7?", "context": "", "response": "function image_flush_caches(): implements hook_flush_caches() returning the list of caches to clear, in this case 'cache_image'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a3ba0c160b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21cache.inc/function/cache_set/7.x", "instruction": "How does the cache_set function store data in Drupal 7 and what parameters does it accept?", "context": "", "response": "function cache_set($cid, $data, $bin = 'cache', $expire = CACHE_PERMANENT): stores data in the persistent cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a3dc438a0e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_check_memory_limit/7.x", "instruction": "How does the drupal_check_memory_limit function check if there is enough memory available for an operation in Drupal 7?", "context": "", "response": "function drupal_check_memory_limit($required, $memory_limit = NULL): compares required memory against the memory limit (using PHP memory_limit value if not provided) and returns TRUE if no limit, unlimited (-1), or limit meets or exceeds required, using parse_size to interpret units like KB, MB, GB.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a3ec907758", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/constant/LOCALE_LANGUAGE_NEGOTIATION_SESSION/7.x", "instruction": "What does the LOCALE_LANGUAGE_NEGOTIATION_SESSION constant indicate in Drupal 7?", "context": "", "response": "define('LOCALE_LANGUAGE_NEGOTIATION_SESSION', 'locale-session');: Indicates that the language is based on request/session parameters.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-a3f3e1b1ad", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_deliver_html_page/7.x", "instruction": "What does the drupal_deliver_html_page function do with different types of page callback results in Drupal 7?", "context": "", "response": "function drupal_deliver_html_page($page_callback_result): Packages and sends the page callback result to the browser as HTML, setting HTTP headers and processing menu status codes (404, 403, 503) or rendering normal content.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a3f4ad478a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.install/function/user_update_7002/7.x", "instruction": "What does the function user_update_7002(&$sandbox) do in Drupal 7?", "context": "", "response": "function user_update_7002(&$sandbox): Updates user timezone fields by converting offsets to timezone names.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a3f6626a29", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21overlay%21overlay.module/function/overlay_render_region/7.x", "instruction": "What does the function overlay_render_region in Drupal 7's overlay module do?", "context": "", "response": "function overlay_render_region($region): Renders an individual page region and returns its HTML, without including it in the final page or adding its associated JavaScript or CSS.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a3f8cf455a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpc.inc/function/xmlrpc_date/7.x", "instruction": "What does the function xmlrpc_date in Drupal do to convert a PHP or ISO date into an XML-RPC object?", "context": "", "response": "function xmlrpc_date($time): Converts a PHP timestamp or ISO date string into a stdClass object with year, month, day, hour, minute, second components and the iso8601 format for use in XML-RPC protocols.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a415f93ade", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_check_vocabulary_hierarchy/7.x", "instruction": "What does the function taxonomy_check_vocabulary_hierarchy do in Drupal 7 and how does it determine the hierarchy level of a vocabulary?", "context": "", "response": "function taxonomy_check_vocabulary_hierarchy($vocabulary, $changed_term): Checks the parents of all terms in the vocabulary and updates its hierarchy setting to the lowest possible level (0, 1, or 2).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a419bb2ea7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.install/function/_image_update_7002_add_columns/7.x", "instruction": "What does the function _image_update_7002_add_columns do in Drupal?", "context": "", "response": "function _image_update_7002_add_columns($table, $field_name): Adds width and height columns to a specific table for an image field.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a42ec06062", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_menu_title/7.x", "instruction": "What title does the function user_menu_title display for the path 'user' in Drupal?", "context": "", "response": "function user_menu_title(): Returns the menu item title for the 'user' route, showing 'My account' for authenticated users and 'User account' for anonymous users.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a43e05502e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_uri/7.x", "instruction": "What does the function user_uri($user) do in Drupal 7?", "context": "", "response": "function user_uri($user): Returns an associative array whose 'path' key contains the route 'user/' followed by the user's uid.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a44407d78d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_delete/7.x", "instruction": "What does the function node_delete($nid) do in Drupal 7?", "context": "", "response": "function node_delete($nid): Deletes the node whose ID is passed as a parameter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a44555c8e9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_file_update/7.x", "instruction": "What does the hook hook_file_update do in Drupal 7?", "context": "", "response": "function hook_file_update($file): Responds to file updates, called when file_save() is executed on an existing file.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a446fbd9f0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/_filter_autop/7.x", "instruction": "What does the _filter_autop function of the Filter module do in Drupal 7?", "context": "", "response": "function _filter_autop($text): Converts line breaks into paragraphs and breaks intelligently, leaving content inside PRE, SCRIPT, STYLE, OBJECT, IFRAME tags and comments unprocessed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a448fa804c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.install/function/image_update_dependencies/7.x", "instruction": "How does image_update_dependencies define update dependencies for the image module in Drupal?", "context": "", "response": "function image_update_dependencies(): implements hook_update_dependencies declaring that image module update 7002 must run after the system reaches version 7020, since that update uses Field API functions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a44edc2c93", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/constant/FILE_WRITABLE/7.x", "instruction": "What value does the FILE_WRITABLE constant have in Drupal 7 and what is it used for?", "context": "", "response": "define('FILE_WRITABLE', 4);: defines the FILE_WRITABLE constant with value 4, indicating a file has write permission and is used in installation functions to check permissions.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-a469d7fae5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21image.gd.inc/function/image_gd_save/7.x", "instruction": "How does the image_gd_save function save an image resource to a destination file in Drupal 7?", "context": "", "response": "function image_gd_save(stdClass $image, $destination): writes an image resource to a destination file, handling stream wrappers and different image formats, and returns TRUE on success.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a47e05aab4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/theme_image_style/7.x", "instruction": "What does the theme_image_style function do in Drupal 7?", "context": "", "response": "function theme_image_style($variables): Returns the HTML for an image using a specific image style, transforming dimensions and generating the styled image URL.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a4aa2feb40", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.install/function/openid_update_7000/7.x", "instruction": "What does the openid_update_7000 function do in the OpenID module of Drupal 7?", "context": "", "response": "function openid_update_7000(): Drops the existing openid_association table and recreates it with a new schema that stores shared association information for OpenID authentication, linking associations to their providers.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a4aa910454", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.api.php/function/hook_comment_view/7.x", "instruction": "What parameters does the hook hook_comment_view receive and what is its purpose in Drupal 7?", "context": "", "response": "function hook_comment_view($comment, $view_mode, $langcode): Allows adding additional data to the comment before it is themed when viewed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a4c04a1439", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21trigger%21trigger.install/function/trigger_update_7001/7.x", "instruction": "What does the trigger_update_7001 function do in Drupal 7?", "context": "", "response": "function trigger_update_7001(): Increases the length of the 'hook' field to 78 characters by removing the primary key and modifying the field in the trigger_assignments table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a4e64fda3f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_view_voting_validate/7.x", "instruction": "How does the poll_view_voting_validate function validate a poll submission in Drupal 7?", "context": "", "response": "function poll_view_voting_validate($form, &$form_state): Checks that an option has been selected and displays a form error if none has been chosen.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a4f705200e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/constant/WATCHDOG_WARNING/7.x", "instruction": "What is the value and purpose of the WATCHDOG_WARNING constant in Drupal 7?", "context": "", "response": "define('WATCHDOG_WARNING', 4);: Defines the warning severity with value 4 in Drupal's logging system.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-a4f8955a79", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpc.inc/function/_xmlrpc/7.x", "instruction": "What does the _xmlrpc function do in Drupal 7 and when is it used?", "context": "", "response": "function _xmlrpc($url, $args, $options = array()): Performs one or several XML-RPC requests to an endpoint and returns the response or FALSE on error.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a50a848f88", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_hmac_base64/7.x", "instruction": "How to calculate a URL-safe base64-encoded HMAC SHA-256 in Drupal 7?", "context": "", "response": "function drupal_hmac_base64($data, $key): Calculates an HMAC SHA-256 of $data using $key, base64-encodes it, and makes it URL-safe by replacing '+' with '-', '/' with '_', and removing any padding '='.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a512110ff9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_page_title/7.x", "instruction": "What does the node_page_title function return in Drupal 7 when passed a node object?", "context": "", "response": "function node_page_title($node): Returns the node title unsanitized by directly accessing the title property of the provided node object.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a520a7e691", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21options%21options.module/function/options_theme/7.x", "instruction": "What does the options_theme function do when implementing hook_theme in Drupal 7?", "context": "", "response": "function options_theme(): Returns an array that registers the 'options_none' theme with the 'instance' and 'option' variables.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a52b01d67a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21tracker%21tracker.module/function/_tracker_myrecent_access/7.x", "instruction": "What does the _tracker_myrecent_access access function of the tracker module do in Drupal 7 and under what conditions does it return true?", "context": "", "response": "function _tracker_myrecent_access($account): Returns true only when the user is authenticated, viewing their own content, and has the 'access content' permission.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a532f70adf", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_forms/7.x", "instruction": "What does the search_forms() function of the search module in Drupal 7 do?", "context": "", "response": "function search_forms(): defines the search_block_form form assigning it the search_box callback and returns the forms array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a540945e2e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_system_listing/7.x", "instruction": "What does the drupal_system_listing function do in Drupal?", "context": "", "response": "function drupal_system_listing($mask, $directory, $key = 'name', $min_depth = 1): returns information about system object files, such as modules and themes, by searching in specific directories.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a555da488f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.admin.inc/function/menu_item_delete_form/7.x", "instruction": "How is the confirmation form for deleting a custom menu link built using the menu_item_delete_form function in Drupal 7?", "context": "", "response": "function menu_item_delete_form($form, &$form_state, $item): Builds a confirmation form for deleting an individual menu link.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a57ed325d2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21blog%21blog.module/function/blog_menu_local_tasks_alter/7.x", "instruction": "What does the blog_menu_local_tasks_alter function do in Drupal 7?", "context": "", "response": "function blog_menu_local_tasks_alter(&$data, $router_item, $root_path): adds an action link to create a new blog post on the blog page and, on the user's blog page, displays a link to publish a new post or a message if they do not have permission.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a57f235789", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.admin.inc/function/node_filter_form_submit/7.x", "instruction": "What does the node_filter_form_submit submit handler do in Drupal 7 content administration?", "context": "", "response": "function node_filter_form_submit($form, &$form_state): processes the filter form operations (Filter, Refine, Undo, Reset) managing the $_SESSION['node_overview_filter'] array to apply, remove, or clear filters in the node list.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a57fa1de05", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/external_documentation%21developer%21globals.php/global/timers/7.x", "instruction": "What is the global $timers variable in Drupal 7?", "context": "", "response": "global $timers;: stores the timers created by the timer_start() function.", "tags": ["api-reference", "global"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a58a8c990b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.pages.inc/function/user_profile_form_submit/7.x", "instruction": "What does the user_profile_form_submit function do in Drupal 7?", "context": "", "response": "function user_profile_form_submit($form, &$form_state): handles the user profile form submission, saves changes to the account, clears the page cache, and displays a confirmation message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a592e18590", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/template_preprocess_menu_tree/7.x", "instruction": "What does the template_preprocess_menu_tree function do in Drupal 7 when preparing variables for theme_menu_tree?", "context": "", "response": "function template_preprocess_menu_tree(&$variables): assigns the full menu tree to the #tree variable and replaces tree with its children so the template renders it.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a594a2e788", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_role_load/7.x", "instruction": "How to load a user role by its ID using the user_role_load function in Drupal 7?", "context": "", "response": "function user_role_load($rid): Retrieves the full user role object corresponding to the given role ID, or FALSE if it does not exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a59facbd5e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_login_destination/7.x", "instruction": "What does the user_login_destination function do in Drupal 7?", "context": "", "response": "function user_login_destination(): Rewrites the destination to avoid redirecting to the login page after logging in, returning the modified destination array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a5b0c09456", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_title_list/7.x", "instruction": "How is the node_title_list function used in Drupal 7 to generate a list of node links from a query result?", "context": "", "response": "function node_title_list($result, $title = NULL): Iterates over a database result and returns a renderable array with linked node title list items, including comment count if available, or FALSE if no rows.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a5bcdf5953", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/function/locale_batch_by_language/7.x", "instruction": "How to prepare a batch to import translations for a given language in Drupal 7?", "context": "", "response": "function locale_batch_by_language($langcode, $finished = NULL, $skip = array()): Prepares a batch to import translations for all enabled modules for a given language.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a5e0f72dcc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.api.php/function/hook_filter_info_alter/7.x", "instruction": "How to use hook_filter_info_alter to modify filter definitions in Drupal 7?", "context": "", "response": "function hook_filter_info_alter(&$info): Allows altering the filter information exposed by hook_filter_info, such as replacing process callbacks or changing default settings of existing filters.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a5e6b96169", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21announcements_feed%21announcements_feed.module/function/announcements_feed_cron/7.x", "instruction": "What does the announcements_feed_cron function do in the announcements_feed module of Drupal 7?", "context": "", "response": "function announcements_feed_cron(): Periodically fetches announcement feeds according to the configured interval and updates the timestamp of the last fetch.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a5ec2ae4d2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.crud.inc/function/_field_write_instance/7.x", "instruction": "What does the _field_write_instance function do in Drupal 7?", "context": "", "response": "function _field_write_instance($instance, $update = FALSE): Stores an instance record in the field configuration database, setting default values for configuration, widget, and display before writing the record.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a5f0eb3f43", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.module/function/update_get_available/7.x", "instruction": "What does the update_get_available function do in Drupal 7?", "context": "", "response": "function update_get_available($refresh = FALSE): Attempts to retrieve update information from cache and updates it when necessary, also checking whether .info files of enabled modules or themes have been modified since the last check.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a6134f68d1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dashboard%21dashboard.module/function/dashboard_admin/7.x", "instruction": "What does the dashboard_admin function do in the Dashboard module of Drupal 7?", "context": "", "response": "function dashboard_admin($launch_customize = FALSE): Generates and returns a render array for the dashboard administration page, configuring JavaScript settings for the drag-and-drop interface, checking block administration permissions, and attaching the necessary libraries and scripts.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a6283ed463", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.module/function/_field_ui_view_mode_menu_access/7.x", "instruction": "What does the _field_ui_view_mode_menu_access function do in Drupal 7?", "context": "", "response": "function _field_ui_view_mode_menu_access($entity_type, $bundle, $view_mode, $access_callback): Menu access callback for view mode display configuration pages that checks visibility based on the 'use custom display' setting and evaluates access via the specified callback.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a62a9fd3b9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/constant/FILE_MODIFY_PERMISSIONS/7.x", "instruction": "What does the FILE_MODIFY_PERMISSIONS constant mean and what is it used for in Drupal 7?", "context": "", "response": "define('FILE_MODIFY_PERMISSIONS', 2): It is a flag used by file_prepare_directory() that indicates that file permissions can be modified.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-a64656ec10", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21tracker%21tracker.module/function/tracker_comment_delete/7.x", "instruction": "What does the tracker_comment_delete function do in the tracker module of Drupal 7?", "context": "", "response": "function tracker_comment_delete($comment): Removes the tracking entry associated with the comment by calling _tracker_remove with the comment's nid, uid, and changed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a647664dee", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_clean_css_identifier/7.x", "instruction": "What does the drupal_clean_css_identifier function do and how is it used to prepare a string as a CSS identifier in Drupal 7?", "context": "", "response": "function drupal_clean_css_identifier($identifier, $filter = array( ' ' => '-', '_' => '-', '/' => '-', '[' => '-', ']' => '', )): Prepares a string to be used as a CSS identifier by applying the specified replacement filters and removing any characters that are not valid according to the CSS specification.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a64b87d8a6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.form.inc/function/field_widget_field/7.x", "instruction": "How does the field_widget_field function retrieve the field definition for a widget in Drupal?", "context": "", "response": "function field_widget_field($element, $form_state): Retrieves the widget's field definition by accessing the field state stored in form_state via field_form_get_state.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a64f1acbd3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.module/function/shortcut_current_displayed_set/7.x", "instruction": "How is the displayed shortcuts set determined for a user account via the shortcut_current_displayed_set function in Drupal?", "context": "", "response": "function shortcut_current_displayed_set($account = NULL): Returns the displayed shortcuts set for the provided user account, using the current user if none is specified.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a6528bf4a4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.admin.inc/function/shortcut_set_delete_form_submit/7.x", "instruction": "What does the shortcut_set_delete_form_submit submit handler do in Drupal 7?", "context": "", "response": "function shortcut_set_delete_form_submit($form, &$form_state): Loads the specified shortcuts set, deletes it, redirects to the shortcuts administration page, and displays a confirmation message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a65c60ad47", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/constant/LANGUAGE_TYPE_INTERFACE/7.x", "instruction": "What does the constant LANGUAGE_TYPE_INTERFACE represent in Drupal 7 and where is it defined?", "context": "", "response": "define('LANGUAGE_TYPE_INTERFACE', 'language');: Defines the language type used to select the user interface, located in includes/bootstrap.inc line 191.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-a65e4cdcaa", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_actions_configure_validate/7.x", "instruction": "What does the function system_actions_configure_validate do in Drupal 7?", "context": "", "response": "function system_actions_configure_validate($form, &$form_state): Validates the submission of the actions configuration form by delegating validation to the validation function of the selected action.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a6701e0c39", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_validate_mail/7.x", "instruction": "What does the function user_validate_mail($mail) do in Drupal 7?", "context": "", "response": "function user_validate_mail($mail): Validates the user's email address and returns error messages if it is invalid.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a685774efe", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_load_stylesheet/7.x", "instruction": "How does drupal_load_stylesheet load and process a stylesheet resolving @import commands in Drupal 7?", "context": "", "response": "function drupal_load_stylesheet($file, $optimize = NULL, $reset_basepath = TRUE): Loads a stylesheet and replaces @import commands with the content of the imported file, optionally compressing the CSS when aggregation is enabled.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a6858195fd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21path.inc/function/drupal_path_initialize/7.x", "instruction": "How does Drupal initialize the $_GET['q'] variable in the route initialization phase?", "context": "", "response": "function drupal_path_initialize(): Initializes $_GET['q'] with the normalized path of the requested page, using the site's front page if not defined.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a689b8315f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21color%21color.module/function/color_theme/7.x", "instruction": "What does the function color_theme do in the Color module of Drupal 7?", "context": "", "response": "function color_theme(): Implements hook_theme() and defines the theme 'color_scheme_form' indicating that its render element is a form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a6925ba316", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.pages.inc/function/user_profile_form/7.x", "instruction": "What does the function user_profile_form do in Drupal 7?", "context": "", "response": "function user_profile_form($form, &$form_state, $account, $category = 'account'): Builds a form to edit a user account or one of its profile categories, adding save and cancel buttons, and registering validation and submit handlers.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a6a21acb28", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.pages.inc/function/user_pass/7.x", "instruction": "What does the function user_pass do in Drupal?", "context": "", "response": "function user_pass(): Builds a form for a user to request a password reset, showing a name or email field and, if the user is logged in, changing the field to a hidden value with their current email.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a6acf579e5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/image_file_delete/7.x", "instruction": "What does the image_file_delete function do when deleting a file in Drupal 7's Image module?", "context": "", "response": "function image_file_delete($file): deletes the image derivatives of the file by calling image_path_flush to remove the generated versions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a6b0d3d259", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21options%21options.module/function/theme_options_none/7.x", "instruction": "What does the theme_options_none function return in Drupal 7 and how does its output vary according to the widget type?", "context": "", "response": "function theme_options_none($variables): returns the HTML for the empty value label in non-required options: shows 'N/A' for radio button widgets (options_buttons) and '- None -' or '- Select a value -' for dropdown lists (options_select) depending on the option value.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a6c0817ef9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_get_active_trail/7.x", "instruction": "What does the menu_get_active_trail function return in Drupal 7 and how does it obtain the active trail?", "context": "", "response": "function menu_get_active_trail(): returns the active trail (path to the menu root) of the current page as an array of menu link items, using the value set by menu_set_active_trail() or calculating it if it does not exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a6faed48d9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.crud.inc/function/field_delete_field/7.x", "instruction": "What does the field_delete_field($field_name) function do in Drupal 7?", "context": "", "response": "function field_delete_field($field_name): Marks a field and its instances and data for deletion.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a6fb6b5e0c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.install/function/field_update_7002/7.x", "instruction": "What does the field_update_7002 update function do in Drupal 7?", "context": "", "response": "function field_update_7002(): splits the field_bundle_settings variable containing configurations for all bundles into separate variables per bundle (field_bundle_settings_{entity_type}__{bundle}) and removes the original variable.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a6fc94f51a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_node_submit/7.x", "instruction": "How to implement the hook_node_submit hook in Drupal 7 to act on a node after the validated form values have been copied to it, but before it is saved or previewed?", "context": "", "response": "function hook_node_submit($node, $form, &$form_state): Allows modules to act on a node after the validated form values have been copied to the node object, but before it is saved or previewed, to adjust properties not related to fields.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a70197f63d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.info.inc/function/_field_info_prepare_instance_display/7.x", "instruction": "What does the _field_info_prepare_instance_display function do in Drupal 7?", "context": "", "response": "function _field_info_prepare_instance_display($field, $display): adapts the display specifications to the current runtime context, delegating to FieldInfo::prepareInstanceDisplay to maintain backward compatibility.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a70ed7cd8e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_process_autocomplete/7.x", "instruction": "What does the form_process_autocomplete function do in Drupal 7?", "context": "", "response": "function form_process_autocomplete($element): prepares the autocomplete data by setting #autocomplete_input with a unique ID and generates the autocomplete path URL by temporarily disabling clean URLs.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a7135e27fb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/function/_locale_import_read_po/7.x", "instruction": "How does the _locale_import_read_po function parse a Gettext PO file and what parameters does it accept to control the import?", "context": "", "response": "function _locale_import_read_po($op, $file, $mode = NULL, $lang = NULL, $group = 'default'): reads the PO file line by line, recognizes msgid, msgid_plural, msgctxt, msgstr, and msgstr[] contexts, validates syntax, and delegates each complete entry to _locale_import_one_string according to the indicated operation.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a717569f25", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21stream_wrappers.inc/constant/STREAM_WRAPPERS_READ_VISIBLE/7.x", "instruction": "What does the STREAM_WRAPPERS_READ_VISIBLE constant indicate in Drupal 7?", "context": "", "response": "define('STREAM_WRAPPERS_READ_VISIBLE', STREAM_WRAPPERS_READ | STREAM_WRAPPERS_VISIBLE);: It is a stream wrapper type flag indicating that the stream is visible and read-only.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-a72c59a112", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_get_query_parameters/7.x", "instruction": "What does the drupal_get_query_parameters function do and how are its parameters $query, $exclude, and $parent used in Drupal 7?", "context": "", "response": "function drupal_get_query_parameters(array $query = NULL, array $exclude = array( 'q', ), $parent = ''): Processes a URL parameters array removing unwanted elements, optionally using an exclusion array, and returning an array suitable for use with url().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a7336381a4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/constant/LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX/7.x", "instruction": "What does the LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX constant indicate in Drupal 7?", "context": "", "response": "define('LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX', 0);: Indicates that language negotiation uses the URL prefix as a language indicator.", "tags": ["api-reference", "constant"], "created_at": "2026-09-29"}
{"id": "doc-drupal7-a75418d63d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_permission/7.x", "instruction": "How are module permissions defined via hook_permission in Drupal 7?", "context": "", "response": "function hook_permission(): Returns an array describing the permissions the module provides for use in permission administration and access control.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a75ae4d9c0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/timer_read/7.x", "instruction": "How do I get the current value of a timer in Drupal 7 without stopping it?", "context": "", "response": "function timer_read($name): reads the current value of the named timer in milliseconds, accumulating elapsed time since its start without stopping it.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a77ae1a09e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_attach_create_bundle/7.x", "instruction": "What does the hook_field_attach_create_bundle hook do in Drupal 7 and when is it invoked?", "context": "", "response": "function hook_field_attach_create_bundle($entity_type, $bundle): is invoked after the field module has performed the operation of creating a new bundle, allowing other modules to act on that event, such as rebuilding the menu to add Field UI tabs.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a7995c365c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dashboard%21dashboard.module/function/theme_dashboard_disabled_blocks/7.x", "instruction": "What does the theme_dashboard_disabled_blocks function return in Drupal 7 and what is it used for?", "context": "", "response": "function theme_dashboard_disabled_blocks($variables): returns the HTML for displaying disabled blocks in the dashboard customization mode, allowing them to be dragged and dropped into columns.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a79eb67934", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_date_format_delete/7.x", "instruction": "How do I delete a date format from the database in Drupal 7 using the function system_date_format_delete?", "context": "", "response": "function system_date_format_delete($dfid): Deletes the record from the date_formats table whose dfid matches the provided ID.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a7afbdc953", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_process_radios/7.x", "instruction": "What does the form_process_radios function do in Drupal 7 and how does it expand a radios element into individual radio elements?", "context": "", "response": "function form_process_radios($element): converts an element of type radios into several elements of individual radio type, assigning attributes such as #type, #title, #return_value, #default_value, #attributes, #parents, #id, #ajax and #weight according to the defined options.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a7c33d5457", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/function/block_custom_block_save/7.x", "instruction": "How does the block_custom_block_save function save a custom block to the database in Drupal 7?", "context": "", "response": "function block_custom_block_save($edit, $delta): Updates the block_custom table with the info, body and format fields from the $edit array using $delta as the block identifier, and always returns TRUE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a7c69eb096", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21rdf%21rdf.module/function/_rdf_mapping_load_multiple/7.x", "instruction": "How does the _rdf_mapping_load_multiple function retrieve RDF mappings for an entity type and multiple bundles in Drupal 7?", "context": "", "response": "function _rdf_mapping_load_multiple($type, array $bundles): Retrieves a set of RDF mappings from the database for the specified entity type and bundles, returning an array of RDF mapping structures or an empty array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a7df2906b1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.pages.inc/function/theme_aggregator_page_rss/7.x", "instruction": "How does the theme_aggregator_page_rss function generate RSS 2.0 output for a list of feeds in Drupal 7?", "context": "", "response": "function theme_aggregator_page_rss($variables): prints an RSS 2.0 page by setting the Content-Type header, processing each feed according to the length setting (teaser, title or full text), building the items with format_rss_item and the channel with format_rss_channel, and sending the resulting XML to the browser.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a7df9d5b3c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/template_process_page/7.x", "instruction": "What does the template_process_page(&$variables) function process in Drupal 7 before rendering the page.tpl.php template?", "context": "", "response": "function template_process_page(&$variables): Adds the breadcrumb, title and messages variables if they are not defined, preparing them for the template.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a7e3008c92", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_cache_clear/7.x", "instruction": "How is the cache of a specific menu cleared in Drupal 7?", "context": "", "response": "function menu_cache_clear($menu_name = 'navigation'): Clears the cache of the indicated menu (default 'navigation') using cache_clear_all in the 'cache_menu' bin and resets the static caches of the menu system.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a8002a3faf", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21content_types.inc/function/node_type_reset/7.x", "instruction": "What does the node_type_reset($type) function do in Drupal 7?", "context": "", "response": "function node_type_reset($type): Resets the relevant fields of a node type defined by a module to their default values.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a80b89c64a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21overlay%21overlay.module/function/overlay_user_dismiss_message/7.x", "instruction": "What does the overlay_user_dismiss_message function do in Drupal 7?", "context": "", "response": "function overlay_user_dismiss_message(): Discards the overlay accessibility message for the current user, saves their preference, shows a confirmation message, and redirects to their profile page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a816e5544d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_term_title/7.x", "instruction": "How to get the unsanitized title of a taxonomy term in Drupal 7 using the taxonomy_term_title function?", "context": "", "response": "function taxonomy_term_title($term): returns an unsanitized string corresponding to the taxonomy term name.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a826b9d0f8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_update/7.x", "instruction": "What does the poll_update($node) function do when updating a poll node in Drupal 7?", "context": "", "response": "function poll_update($node): updates the poll settings and synchronizes options and votes, removing those with empty titles.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a82ab3ec18", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21blog%21blog.pages.inc/function/blog_page_last/7.x", "instruction": "How does the blog_page_last function work that generates the latest blog entries page in Drupal 7?", "context": "", "response": "function blog_page_last(): Displays a page with recent blog entries from all users.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a831a97e16", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.install/function/block_update_7004/7.x", "instruction": "What does the block_update_7004 update function do during the migration from Drupal 6.x to 7.x?", "context": "", "response": "function block_update_7004(): Adds system blocks to themes, migrates blocks from left/right regions to sidebar_first/sidebar_second, converts contact_form_information, user_registration_help, site_mission, and site_footer variables into custom blocks, removes those old variables, and rebuilds theme data.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a87f09dee6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.api.php/function/hook_openid_normalization_method_info/7.x", "instruction": "What does the hook_openid_normalization_method_info hook do in Drupal 7?", "context": "", "response": "function hook_openid_normalization_method_info(): allows modules to declare OpenID normalization methods by returning an array of callbacks that normalize identifiers, stopping at the first one that returns a non-NULL value.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a8853ba18e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21announcements_feed%21announcements_feed.install/function/announcements_feed_uninstall/7.x", "instruction": "What does the announcements_feed_uninstall() function do when uninstalling the announcements_feed module in Drupal 7?", "context": "", "response": "function announcements_feed_uninstall(): Removes the announcements_feed module variables using variable_del.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a8a0b2ed26", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_set_active_item/7.x", "instruction": "How is the active route that determines which page is loaded programmatically set in Drupal 7?", "context": "", "response": "function menu_set_active_item($path): Assigns the given route to $_GET['q'] to define the active page and resets the menu trail static cache (menu_set_active_trail).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a8ad0e30ec", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.core.inc/function/install_select_profile/7.x", "instruction": "What does the function install_select_profile(&$install_state) do in Drupal?", "context": "", "response": "function install_select_profile(&$install_state): Selects the installation profile and updates the corresponding installation state.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a8bb17266d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.install/function/file_field_schema/7.x", "instruction": "What does the function file_field_schema return to define the schema of a file field in Drupal 7?", "context": "", "response": "function file_field_schema($field): Returns an array that defines the columns fid, display, and description, the indexes and foreign keys of the file_managed table for a file field, implementing hook_field_schema().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a8c0baef74", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_multilingual_node_type/7.x", "instruction": "What does the function locale_multilingual_node_type($type_name) return and how does it determine if a content type has multilingual support in Drupal 7?", "context": "", "response": "function locale_multilingual_node_type($type_name): Returns true if the content type has multilingual support enabled, based on the variable language_content_type_{type_name}.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a8de130c5e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/function/_block_rehash/7.x", "instruction": "What does the function _block_rehash($theme = NULL) do in Drupal 7?", "context": "", "response": "function _block_rehash($theme = NULL): Updates the 'block' table with blocks exported by modules, optionally limited to a specific theme.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a8e0851b82", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.admin.inc/function/field_ui_inactive_message/7.x", "instruction": "How does the function field_ui_inactive_message display inactive fields of a bundle in Drupal 7?", "context": "", "response": "function field_ui_inactive_message($entity_type, $bundle): Displays an error message listing the inactive fields of the specified bundle, detailing the widget and required module.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a8e4d79901", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21announcements_feed%21announcements_feed.module/function/announcements_feed_menu/7.x", "instruction": "What does the function announcements_feed_menu do in Drupal 7?", "context": "", "response": "function announcements_feed_menu(): Implements hook_menu() to register the menu item admin/announcements_feed with title 'Announcements' and callback announcements_feed_get_announcements.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a8effa347a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_load_by_mail/7.x", "instruction": "How to obtain a user object by its email address using the function user_load_by_mail in Drupal 7?", "context": "", "response": "function user_load_by_mail($mail): Obtains a fully loaded user object by its email address, returning FALSE if the user cannot be loaded.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a8f00c0fc1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_get_flat_menu/7.x", "instruction": "What does the function book_get_flat_menu($book_link) do in Drupal 7?", "context": "", "response": "function book_get_flat_menu($book_link): Retrieves the book menu tree for a page and returns it as a linear array of menu links, where the element corresponding to the current node is surrounded by its previous and next pages and its immediate children.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a8f3de99c8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_role_revoke_permissions/7.x", "instruction": "How do you revoke permissions from a user role in Drupal 7 using user_role_revoke_permissions?", "context": "", "response": "function user_role_revoke_permissions($rid, array $permissions = array()): Removes the specified permissions from the given role in the role_permission table and clears user access caches.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a90454f5f5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/format_interval/7.x", "instruction": "How does the format_interval function format a time interval in Drupal 7?", "context": "", "response": "function format_interval($interval, $granularity = 2, $langcode = NULL): Converts an interval in seconds to a translated string with the specified granularity, using units such as years, months, weeks, days, hours, minutes, and seconds.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a904a9a0e3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_file_mimetype_mapping_alter/7.x", "instruction": "What does hook_file_mimetype_mapping_alter do in Drupal 7 and how does it alter the MIME type mapping?", "context": "", "response": "function hook_file_mimetype_mapping_alter(&$mapping): Allows modules to add or modify the default MIME type mapping by file extension when file_mimetype_mapping() is called.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a9051414ae", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/element_validate_integer/7.x", "instruction": "What does the element_validate_integer function do in Drupal 7?", "context": "", "response": "function element_validate_integer($element, &$form_state): Validates that the form element value is an integer, setting an error if it is not numeric or does not match its integer value.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a914037877", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/constant/BLOCK_VISIBILITY_LISTED/7.x", "instruction": "What does the BLOCK_VISIBILITY_LISTED constant do in Drupal 7 and when is it used?", "context": "", "response": "define('BLOCK_VISIBILITY_LISTED', 1);: Displays the block only on the listed pages when the page visibility restriction is configured.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-a915a9e49b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21announcements_feed%21announcements_feed.inc/function/announcements_feed_is_relevant_item/7.x", "instruction": "What does the announcements_feed_is_relevant_item function do in Drupal 7?", "context": "", "response": "function announcements_feed_is_relevant_item($version): Checks whether the given version is relevant to the Drupal version in use, returning TRUE if it matches or is '*', and FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a936f1c562", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/format_xml_elements/7.x", "instruction": "How do I format an array as XML elements using the format_xml_elements function in Drupal 7?", "context": "", "response": "function format_xml_elements($array): Formats an array as XML elements, allowing key-value pairs or associative arrays with attributes and optionally encoded content, supporting recursive nesting.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a93bf5bd5a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.pages.inc/function/book_remove_form/7.x", "instruction": "What does the book_remove_form function do when building the form to remove a node from a book in Drupal 7?", "context": "", "response": "function book_remove_form($form, &$form_state, $node): Builds the confirmation form to remove a node from a book, showing whether it has child pages and offering the option to delete it.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a94055abf1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_box/7.x", "instruction": "What does the search_box function of the search module in Drupal 7 do?", "context": "", "response": "function search_box($form, &$form_state, $form_id): builds the HTML form for the search block's search box.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a951328348", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21text%21text.module/function/text_field_formatter_info/7.x", "instruction": "What does the text_field_formatter_info function do in Drupal 7?", "context": "", "response": "function text_field_formatter_info(): Returns an array describing the available field formatters for the text, text_long, and text_with_summary field types.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a95457bca7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.module/function/update_form_system_modules_alter/7.x", "instruction": "What does the update_form_system_modules_alter method of the system_modules class do in Drupal?", "context": "", "response": "function update_form_system_modules_alter(&$form, $form_state): Implements hook_form_FORM_ID_alter for system_modules() and adds a form submission handler to the system modules form, invalidating the available updates cache when the form is saved.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a9555ae20f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_main_menu/7.x", "instruction": "What does the menu_main_menu function return in Drupal 7?", "context": "", "response": "function menu_main_menu(): Returns an array of links rendered as the main menu.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a96d64fc77", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21overlay%21overlay.module/function/overlay_form_alter/7.x", "instruction": "What does the overlay_form_alter function do in Drupal 7 and how does it implement hook_form_alter to add a hidden element that prevents leaving the overlay when submitting GET forms?", "context": "", "response": "function overlay_form_alter(&$form, &$form_state): Adds a hidden 'render' element with value 'overlay' to GET-submitted forms within the overlay to prevent the user from leaving the overlay when submitting them.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a97880793b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_block_save/7.x", "instruction": "What does the node_block_save function do when saving the recent content block configuration in Drupal 7?", "context": "", "response": "function node_block_save($delta = '', $edit = array()): saves the number of recent nodes to display in the 'node_recent_block_count' variable when the delta is 'recent'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a98975a4f8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.module/function/aggregator_help/7.x", "instruction": "What does the aggregator_help function of the Aggregator module do in Drupal 7?", "context": "", "response": "function aggregator_help($path, $arg): Implements hook_help() and returns help text for the Aggregator module administration pages based on the provided path.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a9a2633d88", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_mark/7.x", "instruction": "How does theme_mark generate HTML to mark new or updated content in Drupal 7?", "context": "", "response": "function theme_mark($variables): returns HTML for a new or updated content marker based on the type and current user.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a9ba4e3b3b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_field_info_alter/7.x", "instruction": "What does the function user_field_info_alter do in Drupal?", "context": "", "response": "function user_field_info_alter(&$info): Adds the 'user_register_form' instance setting configuration to all field types, setting it to FALSE by default.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a9bbae3950", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_node_update/7.x", "instruction": "What does the function forum_node_update do in Drupal?", "context": "", "response": "function forum_node_update($node): Updates or deletes the forum records associated with the node when updated, handling revisions and shadow topics.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a9e575801e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_feed_icon/7.x", "instruction": "What does the function theme_feed_icon do in Drupal 7?", "context": "", "response": "function theme_feed_icon($variables): Returns the HTML of a feed icon using the provided url and title variables.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-a9eb8d244f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/_comment_body_field_create/7.x", "instruction": "What does the function _comment_body_field_create($info) do in Drupal 7?", "context": "", "response": "function _comment_body_field_create($info): Creates the comment_body field and its instance for the given node type if they do not already exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aa040cf6bd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_render/7.x", "instruction": "What does the function drupal_render do in Drupal 7 and how does it process a renderable array?", "context": "", "response": "function drupal_render(&$elements): Renders a structured array into HTML by recursively traversing it and applying its properties and theme functions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aa19ec7673", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/constant/DRUPAL_REQUIRED/7.x", "instruction": "What does the constant DRUPAL_REQUIRED represent and what is its value in Drupal 7?", "context": "", "response": "define('DRUPAL_REQUIRED', 2);: Defines a constant with value 2 indicating a required option in forms and system configurations.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-aa2c9043f1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_install_tasks/7.x", "instruction": "What does the hook hook_install_tasks do in Drupal 7?", "context": "", "response": "function hook_install_tasks(&$install_state): Returns an array of tasks that the installation profile will execute after site configuration and before the final language import.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aa2da6b89b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.install/function/comment_update_7004/7.x", "instruction": "What does the function comment_update_7004 do in Drupal 7 and what changes does it apply to the {node_comment_statistics} table?", "context": "", "response": "function comment_update_7004(): Updates the {node_comment_statistics} table by adding the 'cid' field and indexes on 'cid' and 'comment_count'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aa47a3dba7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/_menu_check_access/7.x", "instruction": "What does the _menu_check_access function do in Drupal 7's menu system and how does it decide if a menu item is accessible?", "context": "", "response": "function _menu_check_access(&$item, $map): sets $item['access'] to TRUE or FALSE based on the item's access callback, with a special case for user_access and otherwise calling the callback via call_user_func_array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aa51f1e1c9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_node_form_submit/7.x", "instruction": "What does the poll_node_form_submit function do in Drupal 7 when submitting the node form?", "context": "", "response": "function poll_node_form_submit(&$form, &$form_state): renumbers the poll options and creates the summary output.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aa54c67d5f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_menu_contextual_links_alter/7.x", "instruction": "How is hook_menu_contextual_links_alter used to modify contextual links before they are rendered in Drupal 7?", "context": "", "response": "function hook_menu_contextual_links_alter(&$links, $router_item, $root_path): allows altering or adding contextual links by passing the $links array by reference, receiving the router item and the normalized root path.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aa676efce6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_form_block_admin_configure_submit/7.x", "instruction": "What does the node_form_block_admin_configure_submit function do in Drupal 7?", "context": "", "response": "function node_form_block_admin_configure_submit($form, &$form_state): deletes the block_node_type records associated with the module and form delta and then inserts new records for each selected content type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aa69fb2c90", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/_node_revision_access/7.x", "instruction": "What does the _node_revision_access function do and what is its signature in Drupal 7?", "context": "", "response": "function _node_revision_access($node, $op = 'view', $account = NULL): Checks whether a user has permission to perform an operation (view, update, or delete) on a node revision, returning TRUE if access is allowed and FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aa7311a829", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_storage_pre_insert/7.x", "instruction": "What does the hook_field_storage_pre_insert hook do and what is its signature in Drupal 7?", "context": "", "response": "function hook_field_storage_pre_insert($entity_type, $entity, &$skip_fields): Allows modules to store data before the field storage API inserts the data, optionally preventing the field storage module from doing so.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aa7cfde41a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_page_default/7.x", "instruction": "What does the node_page_default menu callback function do in Drupal 7?", "context": "", "response": "function node_page_default(): Generates a listing of promoted nodes and returns an array ready for drupal_render, including pagination and the page title.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aa85d6f15c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/authorize.php/constant/MAINTENANCE_MODE/7.x", "instruction": "What does the MAINTENANCE_MODE constant defined in authorize.php do in Drupal 7?", "context": "", "response": "define('MAINTENANCE_MODE', 'update');: Sets a global flag that identifies update.php and authorize.php executions, preventing unwanted calls to hook_init()/hook_exit(), CSS/JS preprocessing, translation, and theming issues.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-aa974fcc11", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21text%21text.module/function/text_field_widget_info/7.x", "instruction": "What field widget information does the text module's text_field_widget_info function return in Drupal 7?", "context": "", "response": "function text_field_widget_info(): returns an array that defines field widgets for text types (textfield, textarea, and textarea with summary).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aa9f99fb0b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.module/function/template_preprocess_field/7.x", "instruction": "What does template_preprocess_field do in Drupal 7 and how does it prepare variables for theme_field() and field.tpl.php?", "context": "", "response": "function template_preprocess_field(&$variables, $hook): Prepares template variables for theme_field() and field.tpl.php, setting the label, items, CSS classes, and theme suggestions based on the field element.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aab65b7f7e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_attach_view_alter/7.x", "instruction": "What does hook_field_attach_view_alter do and when is it invoked in Drupal 7?", "context": "", "response": "function hook_field_attach_view_alter(&$output, $context): Allows modules to alter the structured content array of all fields on an entity after field_attach_view() or field_view_field() have processed the fields.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aac33db557", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_access/7.x", "instruction": "How does node_access determine if the current user can perform an operation on a node in Drupal 7?", "context": "", "response": "function node_access($op, $node, $account = NULL): Determines whether the current user can perform the specified operation on the node, checking permissions, module grants, and access to own unpublished content.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aacc122cfb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/entity_view_mode_prepare/7.x", "instruction": "How does Drupal prepare entities for display, allowing other modules to change the view mode before preparing fields?", "context": "", "response": "function entity_view_mode_prepare($entity_type, $entities, $view_mode, $langcode = NULL): Invokes hook_entity_view_mode_alter() and groups entities by view mode, returning an array indexed by view mode so field_attach_prepare_view loads the correct content.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ab041da816", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_content_form/7.x", "instruction": "What does the node_content_form function do in Drupal 7 and how does it generate the content form for a node type that has a title?", "context": "", "response": "function node_content_form($node, $form_state): Implements hook_form() and, if the node type has a title, adds a 'title' text field to the form with required properties, default value, and defined weight.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ab10af307a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7002/7.x", "instruction": "What does the system_update_7002 function do in Drupal 7?", "context": "", "response": "function system_update_7002(): Creates the blocked_ips table to store blocked IP addresses.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ab1b2f129a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21rdf%21rdf.module/function/rdf_preprocess_image/7.x", "instruction": "What does the rdf_preprocess_image function do in Drupal 7?", "context": "", "response": "function rdf_preprocess_image(&$variables): Adds the RDF type 'foaf:Image' to the image file attributes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ab6ba20c81", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_invoke/7.x", "instruction": "What does the node_invoke function do in Drupal 7?", "context": "", "response": "function node_invoke($node, $hook, $a2 = NULL, $a3 = NULL, $a4 = NULL): Invokes a node hook passing the node object or type and additional arguments, returning the value returned by the hook.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ab70b146a3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.module/function/menu_enable/7.x", "instruction": "What does the menu_enable() function do in Drupal 7 when enabling the menu module?", "context": "", "response": "function menu_enable(): Implements hook_enable() and adds a menu link for each existing custom menu, then clears the menu cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ab716373e4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21overlay%21overlay.module/function/theme_overlay_disable_message/7.x", "instruction": "How is the HTML message generated to disable the overlay in Drupal 7 using the theme_overlay_disable_message function?", "context": "", "response": "function theme_overlay_disable_message($variables): Generates the HTML of the message showing how to disable the overlay, applying invisibility and focus classes to the links and wrapping them in a container with ID overlay-disable-message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ab896b51f6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_node_update/7.x", "instruction": "What does the taxonomy_node_update function do in Drupal 7 when a node is updated?", "context": "", "response": "function taxonomy_node_update($node): Deletes and rebuilds the taxonomy index entries of the node when saving it.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ab966cdd51", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/index.php/constant/DRUPAL_ROOT/7.x", "instruction": "What does the DRUPAL_ROOT constant define in Drupal 7 and where is its value set?", "context": "", "response": "define('DRUPAL_ROOT', getcwd());: Defines the Drupal installation directory root as the current working directory.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-aba23b7c73", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_clear_cache_submit/7.x", "instruction": "What does the system_clear_cache_submit function do when processing the performance configuration form submission in Drupal 7?", "context": "", "response": "function system_clear_cache_submit($form, &$form_state): Clears all system caches via drupal_flush_all_caches() and displays the message 'Caches cleared.'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-abb34d29f9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/_format_date_callback/7.x", "instruction": "What is the purpose of the _format_date_callback function in Drupal 7?", "context": "", "response": "function _format_date_callback(array $matches = NULL, $new_langcode = NULL): It translates a formatted date string and caches the translations to avoid redundant calls to t().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-abbe5ffed0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/constant/MARK_UPDATED/7.x", "instruction": "What is the MARK_UPDATED constant used for in Drupal and how is it defined?", "context": "", "response": "define('MARK_UPDATED', 2);: Defines the MARK_UPDATED constant with the value 2, which is used to mark content as updated in Drupal's bookmark system.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-abd3964a9a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_field_presave/7.x", "instruction": "What does the function taxonomy_field_presave do when implementing hook_field_presave() in Drupal 7?", "context": "", "response": "function taxonomy_field_presave($entity_type, $entity, $field, $instance, $langcode, &$items): Creates new terms defined in a freetagging vocabulary before saving the entity.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-abedad0e88", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21password.inc/function/_password_base64_encode/7.x", "instruction": "What does the function _password_base64_encode do in Drupal 7 and how does it encode the input bytes?", "context": "", "response": "function _password_base64_encode($input, $count): Encodes bytes into a printable base 64 string using the *nix crypt() standard, grouping input bits into 6-bit blocks and mapping them via _password_itoa64().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ac2310fc24", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.module/function/file_icon_map/7.x", "instruction": "What does the function file_icon_map do in Drupal 7 and what does it return based on the file's MIME type?", "context": "", "response": "function file_icon_map($file): Determines the generic MIME package of the expected icon for a file based on its MIME type, returning FALSE if it does not match any known one.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ac342ea9af", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/_image_effect_definitions_sort/7.x", "instruction": "What does the function _image_effect_definitions_sort do in Drupal 7?", "context": "", "response": "function _image_effect_definitions_sort($a, $b): Compares the names of image effect definitions to sort them alphabetically using uasort().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ac49c175a4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.module/function/menu_form_node_form_alter/7.x", "instruction": "What does the function menu_form_node_form_alter do in Drupal 7 and what parameters does it receive?", "context": "", "response": "function menu_form_node_form_alter(&$form, $form_state): Implements hook_form_BASE_FORM_ID_alter() and adds the menu element settings fields to the node form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ac4a85960d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/filter_get_roles_by_format/7.x", "instruction": "What does the function filter_get_roles_by_format do in Drupal 7?", "context": "", "response": "function filter_get_roles_by_format($format): Returns an array with the names of the roles that have permission to use the specified text format, keyed by role ID.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ac56e01a73", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_static_reset/7.x", "instruction": "How is a static variable reset in Drupal 7 using the function drupal_static_reset()?", "context": "", "response": "function drupal_static_reset($name = NULL): Resets one or all centrally stored static variables; if $name is omitted, resets all variables.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ac5ecd37e9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/_node_query_node_access_alter/7.x", "instruction": "What does the function _node_query_node_access_alter do when processing a query tagged with 'node_access' in Drupal 7?", "context": "", "response": "function _node_query_node_access_alter($query, $type): Adds node access conditions to a query, detecting the base table and applying node grant permissions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ac617488f9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/themes%21engines%21phptemplate%21phptemplate.engine/function/phptemplate_init/7.x", "instruction": "What does the phptemplate_init function implemented by the phptemplate engine do in Drupal 7?", "context": "", "response": "function phptemplate_init($template): implements hook_init() and includes template.php from the template directory if it exists.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ac618a38e5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.admin.inc/function/user_admin_role_delete_submit/7.x", "instruction": "What does the user_admin_role_delete_submit function do in Drupal 7?", "context": "", "response": "function user_admin_role_delete_submit($form, &$form_state): Sets the redirect to the role deletion page using the 'rid' value from the submitted form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ac90176aec", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.pages.inc/function/node_preview/7.x", "instruction": "What does the node_preview function do and what does it return in Drupal 7?", "context": "", "response": "function node_preview($node): generates a preview of the cloned node, loading its fields and user data, and returns an HTML string formatted with the node_preview theme.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ac9a203e8a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_query_entity_field_access_alter/7.x", "instruction": "What does the node_query_entity_field_access_alter function do in Drupal 7?", "context": "", "response": "function node_query_entity_field_access_alter(QueryAlterableInterface $query): Implements hook_query_TAG_alter() to add node access conditions on field values that belong to nodes, for the field SQL storage engine.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aca087e29e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_get_recent/7.x", "instruction": "How does the node_get_recent function obtain the most recently modified nodes accessible to the current user in Drupal 7?", "context": "", "response": "function node_get_recent($number = 10): returns an array of node entities with the most recently changed nodes that the current user can view, applying access checks and sorting by changed date descending.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aca1b75b44", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/image_effect_save/7.x", "instruction": "What does the image_effect_save function do in Drupal?", "context": "", "response": "function image_effect_save($effect): Saves an image effect, inserting or updating it in the image_effects table and then reloading and flushing the associated image style.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aca589948b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_field_widget_info/7.x", "instruction": "What does the taxonomy_field_widget_info function return in Drupal 7?", "context": "", "response": "function taxonomy_field_widget_info(): implements hook_field_widget_info and returns an array defining the 'taxonomy_autocomplete' widget for taxonomy_term_reference fields with size settings, autocomplete path, and multiple value behavior.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-acb2375c34", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21text%21text.module/function/_text_sanitize/7.x", "instruction": "What does the _text_sanitize function do in Drupal 7 and what are its parameters?", "context": "", "response": "function _text_sanitize($instance, $langcode, $item, $column): Sanitizes the value or summary of a text field by applying check_plain or check_markup according to the text processing settings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-acb51625e3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_vote/7.x", "instruction": "What does the poll_vote function do in Drupal 7 when processing a vote in a poll?", "context": "", "response": "function poll_vote($form, &$form_state): records the user's vote in the database, increments the vote count for the selected option, clears the cache, and handles the session for anonymous users.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-accf46ac9f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.admin.inc/function/menu_overview_form/7.x", "instruction": "What does the menu_overview_form function do in the menu module of Drupal 7?", "context": "", "response": "function menu_overview_form($form, &$form_state, $menu): Generates the form to edit an entire menu tree, showing links accessible to the current user and relevant operations.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-acd6725fac", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_save_action/7.x", "instruction": "What does the comment_save_action function do in Drupal 7?", "context": "", "response": "function comment_save_action($comment): Saves the provided comment, clears the cache, and logs the action in watchdog.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ace2358eeb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_date_delete_format_form_submit/7.x", "instruction": "How does the system_date_delete_format_form_submit submit handler work when deleting a date format in Drupal 7?", "context": "", "response": "function system_date_delete_format_form_submit($form, &$form_state): verifies user confirmation, retrieves the date format by its ID, deletes it with system_date_format_delete, displays a success message with the deleted format, and redirects to the format list page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ace58109c8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.install/function/user_update_7005/7.x", "instruction": "What does the user_update_7005 update function do in Drupal 7?", "context": "", "response": "function user_update_7005(&$sandbox): Changes the users table to allow longer email addresses, modifying the mail and init fields to varchar(254) and updating their indexes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ad2472365a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_form_validate/7.x", "instruction": "What does the comment_form_validate function do in Drupal 7?", "context": "", "response": "function comment_form_validate($form, &$form_state): validates the comment form submission by checking the author, date, email, and homepage, setting errors as appropriate.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ad2f614943", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.module/function/shortcut_valid_link/7.x", "instruction": "How does the shortcut_valid_link function determine if a path is a valid shortcut link in Drupal 7?", "context": "", "response": "function shortcut_valid_link($path): converts the path to its normal path without alias, then verifies that it is not external and exists in the menu system, or that it is empty or ''.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ad335750c4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21tablesort.inc/function/tablesort_get_order/7.x", "instruction": "How does the tablesort_get_order function determine the current sort criterion in a sortable table in Drupal?", "context": "", "response": "function tablesort_get_order($headers): Determines the current sort criterion by analyzing the 'order' parameter of the GET URL and comparing it with the provided column titles, returning an array with the localized column name and the corresponding database field name.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ad40c2a91f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/template_preprocess/7.x", "instruction": "What is the template_preprocess function used for in Drupal 7 and what default variables does it add when processing templates?", "context": "", "response": "function template_preprocess(&$variables, $hook): prepares auxiliary variables for templates, such as zebra striping, identifier, theme directory, CSS classes, and user global variables.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ad6bc352aa", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/constant/MENU_FOUND/7.x", "instruction": "What does the MENU_FOUND constant mean in Drupal 7?", "context": "", "response": "define('MENU_FOUND', 1): internal status code indicating that the menu item was found.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-ad6d06cf71", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21cache.inc/function/_cache_get_object/7.x", "instruction": "What does the _cache_get_object($bin) function return and how is its cache class determined in Drupal 7?", "context": "", "response": "function _cache_get_object($bin): Gets the cache object for the specified bin, returning by default an instance of DrupalDatabaseCache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ad830d2685", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21utility.inc/function/drupal_var_export/7.x", "instruction": "What does the drupal_var_export function do in Drupal 7 and how does it export a variable compatible with Drupal coding standards?", "context": "", "response": "function drupal_var_export($var, $prefix = ''): Exports a variable following Drupal coding standards, adapting the var_export output for arrays, booleans, strings, and stdClass objects.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ad8c761b1d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_block_info/7.x", "instruction": "What does the search_block_info function return in Drupal 7 and how does it implement hook_block_info()?", "context": "", "response": "function search_block_info(): defines the search form block with info 'Search form', disables cache with DRUPAL_NO_CACHE, and marks it as administrative.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ad98383c90", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_block_user_action/7.x", "instruction": "How is the action to block a user implemented via the user_block_user_action function in Drupal 7?", "context": "", "response": "function user_block_user_action(&$entity, $context = array()): Blocks the user whose ID is found in $entity->uid or in $context['uid']; if neither is defined, blocks the current user.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ad9b27cb10", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/fix_gpc_magic/7.x", "instruction": "What does the fix_gpc_magic() function do in Drupal 7?", "context": "", "response": "function fix_gpc_magic(): It fixes the double escaping caused by magic_quotes in some PHP installations.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ada35246b6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/constant/IMAGE_STORAGE_DEFAULT/7.x", "instruction": "What is the IMAGE_STORAGE_DEFAULT constant used for in the Image module of Drupal 7?", "context": "", "response": "define('IMAGE_STORAGE_DEFAULT', 4);: is a constant that identifies predefined image styles in code by modules (module-defined presets) and has value 4.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-adade642b6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.core.inc/function/install_finished/7.x", "instruction": "What does the install_finished function do in Drupal 7?", "context": "", "response": "function install_finished(&$install_state): Finalizes file import at the end of installation and returns a message informing the user that installation is complete.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-adb152ed93", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_node_load/7.x", "instruction": "How does the book_node_load function implement book and menu data loading for nodes in Drupal 7?", "context": "", "response": "function book_node_load($nodes, $types): Loads book information and menu links for the given nodes, attaching the data to the node object and deserializing the options.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-adb3c8ac53", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21number%21number.module/function/number_field_widget_form/7.x", "instruction": "How does the number_field_widget_form function build the form widget for numeric fields in Drupal 7?", "context": "", "response": "function number_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element): Implements hook_field_widget_form() and returns a textfield element that replaces the decimal separator according to configuration, adjusts size and maximum length according to number type, adds prefix/suffix defined in the instance, and attaches number_field_widget_validate validation.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-adb6f15123", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/update.php/function/update_extra_requirements/7.x", "instruction": "What does the function update_extra_requirements do in Drupal 7 and what is its purpose during the update process?", "context": "", "response": "function update_extra_requirements($requirements = NULL): Returns and stores the additional requirements that apply during the update process, accumulating them in a static variable.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-adc8095504", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21list%21list.module/function/list_boolean_allowed_values_callback/7.x", "instruction": "What function does list_boolean_allowed_values_callback fulfill as value_callback for boolean fields in Drupal 7?", "context": "", "response": "function list_boolean_allowed_values_callback($element, $input, $form_state): Assembles allowed values for boolean fields by obtaining the on and off states from form_state.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-adc9eab180", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.module/function/shortcut_menu/7.x", "instruction": "What does the shortcut_menu function of the Shortcut module do in Drupal 7?", "context": "", "response": "function shortcut_menu(): Implements hook_menu() by defining the menu items for managing shortcut sets and their links.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-addbc64008", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.module/function/aggregator_feed_load/7.x", "instruction": "How is a specific aggregator feed loaded in Drupal 7 using its ID?", "context": "", "response": "function aggregator_feed_load($fid): Loads a feed from the database by its ID and stores it in static cache to avoid repeated queries.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ade162cc75", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.admin.inc/function/aggregator_form_feed_validate/7.x", "instruction": "What does the aggregator_form_feed_validate function do in Drupal 7 and what validations does it perform on the feed aggregator form?", "context": "", "response": "function aggregator_form_feed_validate($form, &$form_state): Validates the aggregator form by checking that the URL is valid with valid_url() and that there are no duplicate titles or URLs in the aggregator_feed table, setting form errors when appropriate.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ae5eebea42", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_status_messages/7.x", "instruction": "What does the theme_status_messages function do in Drupal 7 and how does it generate HTML for status and error messages?", "context": "", "response": "function theme_status_messages($variables): Returns the HTML of status and error messages grouped by type, with an invisible heading for assistive technologies and a colored box for sighted users.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ae7e398fc8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.pages.inc/function/poll_page/7.x", "instruction": "What does the poll_page function in Drupal 7 return when called as a menu callback?", "context": "", "response": "function poll_page(): Generates an HTML list of all public polls, showing title, vote count, and status (open/closed) with pagination.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ae8515b386", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.admin.inc/function/field_ui_field_overview_form_submit/7.x", "instruction": "What does the field_ui_field_overview_form_submit submit handler do in Drupal 7?", "context": "", "response": "function field_ui_field_overview_form_submit($form, &$form_state): Processes the submission of the field overview form, updating weights, creating new or existing fields, and redirecting as appropriate.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ae9e770939", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.pages.inc/function/theme_aggregator_categorize_items/7.x", "instruction": "What does the theme_aggregator_categorize_items function do in Drupal 7 and what does its $variables parameter contain?", "context": "", "response": "function theme_aggregator_categorize_items($variables): Returns the HTML of the aggregator page form for assigning categories, rendering the form received in $variables['form'].", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aea45baa67", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21ajax.inc/function/ajax_prepare_response/7.x", "instruction": "How does ajax_prepare_response convert the result of a page callback into an Ajax commands array in Drupal 7?", "context": "", "response": "function ajax_prepare_response($page_callback_result): Converts the return value of a page callback into an array of Ajax commands that can be passed to ajax_render().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aeacef04c7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.admin.inc/function/theme_book_admin_table/7.x", "instruction": "What does the theme_book_admin_table function do in Drupal 7 and what does it return?", "context": "", "response": "function theme_book_admin_table($variables): Generates the HTML of the book administration form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-aebc89379f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21language.inc/function/language_negotiation_purge/7.x", "instruction": "How does language_negotiation_purge() work in Drupal 7 and when is it invoked?", "context": "", "response": "function language_negotiation_purge(): Removes unused language negotiation providers from the configuration, refreshing static caches and readjusting negotiation weights by language type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-af17ba9963", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.module/function/_profile_get_fields/7.x", "instruction": "How does the _profile_get_fields function retrieve profile fields filtered by category or registration context in Drupal 7?", "context": "", "response": "function _profile_get_fields($category, $register = FALSE): Queries the profile_field table filtering by register=1 if $register is TRUE, or by category using LIKE; excludes fields with visibility PROFILE_HIDDEN for users without 'administer users' permission and returns results ordered by category and weight.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-af210b035a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_user_cancel/7.x", "instruction": "What does the poll_user_cancel function do when a user account is cancelled with the 'user_cancel_reassign' method?", "context": "", "response": "function poll_user_cancel($edit, $account, $method): Reassigns poll votes from the cancelled user to the anonymous user (uid 0) by updating the poll_vote table when the cancellation method is 'user_cancel_reassign'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-af363d859c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21language.inc/function/language_from_default/7.x", "instruction": "What does the language_from_default function return in Drupal 7?", "context": "", "response": "function language_from_default(): Returns the default language code by calling language_default()->language.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-af4769fa8e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21blog%21blog.module/function/blog_node_info/7.x", "instruction": "What does the blog_node_info function return in the Drupal 7 blog module?", "context": "", "response": "function blog_node_info(): Returns an array defining the 'blog' node type with its name, base, and description for multi-user blogs.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-af4fd77610", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpcs.inc/function/xmlrpc_server_method_help/7.x", "instruction": "What does the xmlrpc_server_method_help function do in Drupal 7 and what parameter does it receive?", "context": "", "response": "function xmlrpc_server_method_help($method): Returns the help text for the specified XML-RPC method by accessing the help array of the XML-RPC server.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-af5a84012b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.admin.inc/function/image_effect_scale_validate/7.x", "instruction": "What does image_effect_scale_validate do in Drupal 7 and what validation does it perform on the image effect form fields?", "context": "", "response": "function image_effect_scale_validate($element, &$form_state): Validates that at least one of the width or height fields has a value, showing an error if both are empty.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-af6914bb61", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.multilingual.inc/function/field_language/7.x", "instruction": "How to get the display language of fields attached to an entity in Drupal 7 using the field_language function?", "context": "", "response": "function field_language($entity_type, $entity, $field_name = NULL, $langcode = NULL): Returns the display language of fields attached to the given entity.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-af83110d20", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/flood_clear_event/7.x", "instruction": "How is an event removed from the flood control mechanism for the current visitor in Drupal 7?", "context": "", "response": "function flood_clear_event($name, $identifier = NULL): Causes the flood control mechanism to forget an event for the current visitor.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-af9cf2e9a8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/constant/REGISTRY_WRITE_LOOKUP_CACHE/7.x", "instruction": "What does the constant REGISTRY_WRITE_LOOKUP_CACHE indicate in Drupal 7?", "context": "", "response": "define('REGISTRY_WRITE_LOOKUP_CACHE', 2);: indicates that the registry lookup cache should be written to storage.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-afa0775dc3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/authorize.php/constant/DRUPAL_ROOT/7.x", "instruction": "What does the constant DRUPAL_ROOT define in Drupal 7 and where is its value set?", "context": "", "response": "define('DRUPAL_ROOT', getcwd());: Defines the root of the Drupal installation directory using the current working directory.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-afb0842601", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/_filter_html_settings/7.x", "instruction": "What does the function _filter_html_settings return when implementing callback_filter_settings for the HTML filter in Drupal 7?", "context": "", "response": "function _filter_html_settings($form, &$form_state, $filter, $format, $defaults): builds and returns a configuration array with fields for allowed HTML tags, displaying basic help, and adding rel=\"nofollow\" to links.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-afbba6b3cd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.api.php/function/hook_taxonomy_term_view_alter/7.x", "instruction": "What does the hook hook_taxonomy_term_view_alter do in Drupal 7 and when is it invoked?", "context": "", "response": "function hook_taxonomy_term_view_alter(&$build): Alters the renderable array of a taxonomy term after taxonomy_term_view() has assembled the complete structure, allowing modification of weights, adding #post_render callbacks or other processing that requires the content to already be built.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-afcf033046", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_build_filter_query/7.x", "instruction": "What does the function user_build_filter_query do in Drupal 7?", "context": "", "response": "function user_build_filter_query(SelectQuery $query): Extends a SelectQuery object adding filter conditions for user administration based on values stored in the session.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-afd706def6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/_drupal_set_preferred_header_name/7.x", "instruction": "What does the function _drupal_set_preferred_header_name do in Drupal 7?", "context": "", "response": "function _drupal_set_preferred_header_name($name = NULL): Sets the preferred name for an HTTP header, storing it in lowercase for case-insensitive comparisons and returns the list of names when called without arguments.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-afe9047478", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21trigger%21trigger.module/function/trigger_taxonomy_term_delete/7.x", "instruction": "What does the function trigger_taxonomy_term_delete that implements hook_taxonomy_term_delete() do?", "context": "", "response": "function trigger_taxonomy_term_delete($term): Executes _trigger_taxonomy with the event 'taxonomy_term_delete' and the term converted to an array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-afec65c26d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.effects.inc/function/image_resize_dimensions/7.x", "instruction": "What does the function image_resize_dimensions do in Drupal 7?", "context": "", "response": "function image_resize_dimensions(array &$dimensions, array $data): sets the image dimensions to the width and height values specified in the $data parameter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-afff7387d5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21announcements_feed%21announcements_feed.module/function/announcements_feed_page_alter/7.x", "instruction": "What does the announcements_feed_page_alter function from the announcements_feed module do in Drupal?", "context": "", "response": "function announcements_feed_page_alter(&$page): If the toolbar is available, it adds a pre_render function to add a class.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b01d80c67e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/misc%21typo3%21phar-stream-wrapper%21src%21Helper.php/class/Helper/7.x", "instruction": "How is the normalizePath method of the Helper class implemented in Drupal 7 and what is the final result?", "context": "", "response": "public static function normalizePath($path): Normalizes a path by removing the phar:// prefix, correcting Windows directory separators, and removing the trailing slash.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-b025aab5b2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.module/function/aggregator_block_configure/7.x", "instruction": "How is hook_block_configure() implemented in the aggregator_block_configure function to configure the aggregator block in Drupal 7?", "context": "", "response": "function aggregator_block_configure($delta = ''): returns the aggregator block configuration form when the delta corresponds to a category, allowing selection of the number of news items to display.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b04ee89119", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21rdf%21rdf.module/function/rdf_entity_info_alter/7.x", "instruction": "What does the rdf_entity_info_alter function do in Drupal 7 and why should it not be used to alter bundle mappings?", "context": "", "response": "function rdf_entity_info_alter(&$entity_info): implements hook_entity_info_alter() assigning to each bundle of each entity type its RDF mapping loaded from the database, or the default mapping if none exists; it should not be used to alter mappings because the UI is the authority and would overwrite user-defined mappings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b0533959f6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21mail.inc/function/drupal_html_to_text/7.x", "instruction": "How does the drupal_html_to_text function convert an HTML string to plain text while preserving its structure in Drupal 7?", "context": "", "response": "function drupal_html_to_text($string, $allowed_tags = NULL): converts an HTML string to plain text suitable for email (RFC 3676), replacing compatible tags with format markers and preserving indentation and line breaks.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b06c1d2951", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21statistics%21statistics.module/function/statistics_menu/7.x", "instruction": "What routes and callbacks does the statistics_menu function of the statistics module define in Drupal 7 when implementing hook_menu()?", "context": "", "response": "function statistics_menu(): defines menu entries for hit reports, pages, visitors, referrers, access details, settings, and local tracking tasks through the implementation of hook_menu().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b089e7b9eb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21options%21options.module/function/options_field_widget_form/7.x", "instruction": "What does the options_field_widget_form function do when implementing hook_field_widget_form() in Drupal 7?", "context": "", "response": "function options_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element): Prepares and returns the form element corresponding to the options field widget (select, buttons, or onoff) based on the field settings and current values.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b08d89a66a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_access/7.x", "instruction": "What does hook_field_access do in Drupal 7 and how does it control access to a field?", "context": "", "response": "function hook_field_access($op, $field, $entity_type, $entity, $account): Determines whether the user has access to a given field, allowing modules to block edit or view operations; if no module returns FALSE, the operation is allowed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b0953cea31", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21ajax.inc/function/ajax_pre_render_element/7.x", "instruction": "What does the ajax_pre_render_element function do in Drupal 7?", "context": "", "response": "function ajax_pre_render_element($element): Adds the necessary Ajax information to an element so it can communicate with JavaScript, attaching the required libraries and settings and returning the processed element.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b0996cdf11", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.effects.inc/function/image_scale_dimensions/7.x", "instruction": "What does the image_scale_dimensions function do in Drupal 7 and how does it modify image dimensions?", "context": "", "response": "function image_scale_dimensions(array &$dimensions, array $data): Scales the dimensions array using the width, height, and upscale flag provided in $data.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b09ea7d82d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/filter_modules_disabled/7.x", "instruction": "What does the filter_modules_disabled function do when modules are disabled in Drupal 7?", "context": "", "response": "function filter_modules_disabled($modules): Resets the static cache of module-provided filters by calling drupal_static_reset('filter_get_filters').", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b0c4993d91", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.admin.inc/function/theme_locale_date_format_form/7.x", "instruction": "What does the theme_locale_date_format_form function do in Drupal 7 and what does it return?", "context": "", "response": "function theme_locale_date_format_form($variables): Generates the HTML for the locale date format form, building a table with type and format, and rendering the form elements.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b0cb9f0765", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_help/7.x", "instruction": "What does the poll_help function do in the Poll module of Drupal 7?", "context": "", "response": "function poll_help($path, $arg): Implements hook_help() and returns HTML help text for the admin/help#poll route with information about the Poll module, including description, creation, and viewing of polls.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b0d13a9c48", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.admin.inc/function/profile_field_form/7.x", "instruction": "How does the profile_field_form function generate the form for adding or editing a user profile field in Drupal 7?", "context": "", "response": "function profile_field_form($form, &$form_state, $arg = NULL): Generates a form for adding or editing a user profile field.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b0edead5d0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.admin.inc/function/menu_delete_menu_confirm_submit/7.x", "instruction": "How does the menu_delete_menu_confirm_submit function delete a custom menu and all its links in Drupal 7?", "context": "", "response": "function menu_delete_menu_confirm_submit($form, &$form_state): Verifies the menu is not a system menu, resets links defined by hook_menu, clears links to the menu management page, deletes the custom menu and its links, displays a confirmation message, and logs the action in watchdog.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b0f342c7ef", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.install/function/node_update_7012/7.x", "instruction": "What does the node_update_7012 update function do in Drupal 7 when updating from Drupal 6?", "context": "", "response": "function node_update_7012(): Changes body fields to non-translatable (translatable = 0) and sets their language to LANGUAGE_NONE, then resets the node type cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b1072ab61e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_sort_title/7.x", "instruction": "What does the drupal_sort_title function do in Drupal 7?", "context": "", "response": "function drupal_sort_title($a, $b): Sort callback that compares items by the 'title' key case-insensitively.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b10c888f20", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/function/_locale_batch_import/7.x", "instruction": "How is batch translation import performed via the _locale_batch_import function in Drupal 7?", "context": "", "response": "function _locale_batch_import($filepath, &$context): Performs interface translation import as a batch step.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b1481bc79c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_node_presave/7.x", "instruction": "What does hook_node_presave do in Drupal 7 and when in the save process does it execute?", "context": "", "response": "function hook_node_presave($node): Invoked from node_save() before persisting the node to the database, allowing modification of its data when inserted or updated.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b14a63e114", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21toolbar%21toolbar.module/function/toolbar_permission/7.x", "instruction": "What permissions does the toolbar_permission function define in the Toolbar module of Drupal 7?", "context": "", "response": "function toolbar_permission(): Defines the 'access toolbar' permission that allows using the admin bar.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b14c99b054", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/check_markup/7.x", "instruction": "What does the check_markup function do in Drupal 7?", "context": "", "response": "function check_markup($text, $format_id = NULL, $langcode = '', $cache = FALSE): Executes all enabled filters on a text, applying optional caching and language support.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b14db2d10e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_action_info/7.x", "instruction": "What does the user_action_info function do in Drupal?", "context": "", "response": "function user_action_info(): Implements hook_action_info to define lock and unlock actions for the current user.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b15158dc82", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.field.inc/function/file_field_is_empty/7.x", "instruction": "How is hook_field_is_empty() implemented for the file field in Drupal 7 and what condition does it use to determine if the field is empty?", "context": "", "response": "function file_field_is_empty($item, $field): Returns true when the element has no fid set, indicating the file field is empty.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b1664c0153", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.admin.inc/function/block_admin_display/7.x", "instruction": "What does the block_admin_display function do in Drupal 7 and when is it invoked?", "context": "", "response": "function block_admin_display($theme = NULL): It is the menu callback for admin/structure/block that initializes the theme, retrieves and sorts blocks, and displays the block administration form for the specified theme (or the current theme if none is provided).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b168c50d21", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21statistics%21statistics.admin.inc/function/statistics_top_referrers/7.x", "instruction": "What does the statistics_top_referrers function do in Drupal 7?", "context": "", "response": "function statistics_top_referrers(): Displays the top referrers table from the access log using a renderable array with header, rows, and pager.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b1754db57d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21password.inc/constant/DRUPAL_MAX_HASH_COUNT/7.x", "instruction": "What does the DRUPAL_MAX_HASH_COUNT constant define in Drupal 7?", "context": "", "response": "define('DRUPAL_MAX_HASH_COUNT', 30);: Defines the maximum allowed log2 iterations for password stretching, set to 30.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-b17a0cd025", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_new_page_count/7.x", "instruction": "What does the comment_new_page_count function do in Drupal 7 and what value does it return?", "context": "", "response": "function comment_new_page_count($num_comments, $new_replies, $node): Calculates the page number for the first new comment; returns \"page=X\" if greater than zero, or empty string otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b1810054ff", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21tracker%21tracker.module/function/tracker_help/7.x", "instruction": "How does the tracker_help function implement hook_help to display the Tracker module documentation in Drupal 7?", "context": "", "response": "function tracker_help($path, $arg): Returns the help text describing the Tracker module, its uses, and administration links.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b1b1063e47", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7072/7.x", "instruction": "What does the system_update_7072 function do in Drupal 7?", "context": "", "response": "function system_update_7072(): Removes the obsolete variable 'site_offline_message'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b1b4abd4cc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_menu_site_status_alter/7.x", "instruction": "What is the purpose of hook_menu_site_status_alter in Drupal 7 and what effect does it have on the site status before menu dispatch?", "context": "", "response": "function hook_menu_site_status_alter(&$menu_site_status, $path): Alters the site status before menu dispatch and allows skipping default handling if the value is not MENU_SITE_ONLINE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b1dde5e0c5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21batch.inc/function/_batch_progress_page/7.x", "instruction": "What does the _batch_progress_page function do in Drupal 7?", "context": "", "response": "function _batch_progress_page(): Generates and displays the batch processing progress page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b212c3dbd6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/_filter_url_tips/7.x", "instruction": "What does the _filter_url_tips function do and what string does it return to provide help about the URL filter in Drupal 7?", "context": "", "response": "function _filter_url_tips($filter, $format, $long = FALSE): Returns the help message indicating that web and email addresses are automatically converted to links.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b24f5dddb2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21list%21list.module/function/list_field_formatter_view/7.x", "instruction": "How does list_field_formatter_view implement formatting of list type fields in Drupal 7?", "context": "", "response": "function list_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display): implements hook_field_formatter_view() and renders elements according to the display type: 'list_default' shows allowed values (with fallback to key) and 'list_key' shows keys directly, both sanitized with field_filter_xss.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b25317d2b2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_sort_modules_by_info_name/7.x", "instruction": "How does the function system_sort_modules_by_info_name sort modules or themes in Drupal 7?", "context": "", "response": "function system_sort_modules_by_info_name($a, $b): Sorts modules or themes alphabetically by name case-insensitively using strcasecmp on the info['name'] property.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b253921da7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21image.gd.inc/function/image_gd_rotate/7.x", "instruction": "How does the function image_gd_rotate rotate an image in Drupal 7 and what parameters does it accept?", "context": "", "response": "function image_gd_rotate(stdClass $image, $degrees, $background = NULL): Rotates the image clockwise by the specified degrees, modifies the resource and image object dimensions, handles background color and transparency for GIFs, and returns TRUE on success or FALSE if imagerotate is not available.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b278320b09", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/_filter_htmlcorrector/7.x", "instruction": "What does the function _filter_htmlcorrector do when processing text in Drupal 7?", "context": "", "response": "function _filter_htmlcorrector($text): scans the input text and ensures HTML tags are properly closed by loading and serializing the DOM.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b283977ae6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_build_css_cache/7.x", "instruction": "What does the function drupal_build_css_cache do in Drupal 7 and what parameter does it receive?", "context": "", "response": "function drupal_build_css_cache($css): aggregates and optimizes CSS files into a cache file and returns its URI or FALSE if it cannot be saved.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b28facec98", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/theme_status_report/7.x", "instruction": "What does the function theme_status_report do in Drupal 7 and how is it used to generate the status report?", "context": "", "response": "function theme_status_report($variables): Returns the HTML that displays the site status report, formatting requirements according to their severity.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b2949d34b3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_image_toolkits/7.x", "instruction": "What does the function system_image_toolkits() do in Drupal 7?", "context": "", "response": "function system_image_toolkits(): implements hook_image_toolkits() returning an array that defines the GD2 toolkit and checks its availability.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b296f86a68", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/constant/REQUIREMENT_WARNING/7.x", "instruction": "What value and meaning does the constant REQUIREMENT_WARNING have in Drupal 7?", "context": "", "response": "define('REQUIREMENT_WARNING', 1);: sets the warning severity level (value 1) for system requirements, indicating a warning condition that allows continuing installation but signaling a warning.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-b29fdcf026", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/blocked_ip_load/7.x", "instruction": "How does the function blocked_ip_load retrieve a blocked IP address from the database in Drupal 7?", "context": "", "response": "function blocked_ip_load($iid): executes a SELECT query on the blocked_ips table filtering by iid and returns the result as an associative array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b2ae56c7fc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21toolbar%21toolbar.module/function/toolbar_menu_navigation_links/7.x", "instruction": "How does the function toolbar_menu_navigation_links generate an array of links from a menu tree in Drupal 7?", "context": "", "response": "function toolbar_menu_navigation_links($tree): Generates an array of links from a menu tree array, adding path-based IDs and icon placeholder markers.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b2af2dda62", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.install/function/block_update_7007/7.x", "instruction": "What update does the function block_update_7007 perform in Drupal 7 on the block_custom table?", "context": "", "response": "function block_update_7007(): Changes the format field of the block_custom table to varchar(255) allowing null values.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b2b829013f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_validate_current_pass/7.x", "instruction": "What does the function user_validate_current_pass(&$form, &$form_state) do in Drupal 7?", "context": "", "response": "function user_validate_current_pass(&$form, &$form_state): It is the form validation handler that verifies the current password entered matches the account before allowing changes to required fields in the user account form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b2de9d1987", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_themes_admin_form_submit/7.x", "instruction": "What does the function system_themes_admin_form_submit do in Drupal 7 when processing submissions of the system_themes_admin_form?", "context": "", "response": "function system_themes_admin_form_submit($form, &$form_state): processes the form submission saving admin themes and nodes via variable_set and displays a confirmation message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b2e88c5f7e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.api.php/function/hook_aggregator_process_info/7.x", "instruction": "What should the function hook_aggregator_process_info return in Drupal 7 and when does it execute?", "context": "", "response": "function hook_aggregator_process_info(): defines the title and description of the processor displayed on the aggregator settings page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b31f0f78c9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.admin.inc/function/_shortcut_link_form_elements/7.x", "instruction": "What does the function _shortcut_link_form_elements do in Drupal 7 and what parameter does it receive?", "context": "", "response": "function _shortcut_link_form_elements($shortcut_link = NULL): Helper function that builds a form for adding or editing shortcut links, returning an array of form elements.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b3312ffe18", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21contextual%21contextual.module/function/contextual_library/7.x", "instruction": "What does the function contextual_library() do in Drupal 7?", "context": "", "response": "function contextual_library(): Implements hook_library() and defines the 'contextual-links' library with its JavaScript and CSS files.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b34193d96e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpc.inc/function/xmlrpc_message_tag_close/7.x", "instruction": "What does the xmlrpc_message_tag_close function do in Drupal 7 when closing an XML tag during parsing of an XML-RPC message?", "context": "", "response": "function xmlrpc_message_tag_close($parser, $tag): handles closing tags in XML-RPC parsing, converting the current tag content to the corresponding type (int, double, string, boolean, base64, etc.) and adding it as a parameter or value to the message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b343969803", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7083/7.x", "instruction": "Which Drupal 7 function adds the file 'jquery-html-prefilter-3.5.0-backport.js' to the 'jquery' library to force reconstruction of hook_library() and JS aggregates?", "context": "", "response": "function system_update_7083(): adds the file jquery-html-prefilter-3.5.0-backport.js to the jquery library and acts as a no-op update to force reconstruction of hook_library() and JavaScript aggregates.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b354dfe981", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_modules_enabled/7.x", "instruction": "What does the locale_modules_enabled function in locale.module do in Drupal 7 when modules are enabled?", "context": "", "response": "function locale_modules_enabled($modules): Implements hook_modules_enabled(): includes language.inc, recalculates language types and purges language negotiation to refresh language configuration after enabling modules.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b3617ae91b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_permission/7.x", "instruction": "What permissions does the search_permission function define in Drupal 7?", "context": "", "response": "function search_permission(): Defines the search module permissions: administer search, search content, and use advanced search.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b3666c7f5f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_account_form/7.x", "instruction": "What does the user_account_form helper function do in Drupal?", "context": "", "response": "function user_account_form(&$form, &$form_state): This helper function adds default user account fields to the registration and edit forms, including account information (name, mail, password), status, roles and image management, as well as setting up validations and signature options.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b3b56f7122", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21authorize.inc/function/_authorize_filetransfer_connection_settings/7.x", "instruction": "How is the Form API array generated for the connection settings of a file transfer backend in Drupal 7?", "context": "", "response": "function _authorize_filetransfer_connection_settings($backend): Generates and returns the Form API array of connection settings for the specified backend.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b3c9147405", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.module/function/_openid_xrds_discovery/7.x", "instruction": "What does the _openid_xrds_discovery($claimed_id) function do in Drupal 7 during OpenID XRDS discovery?", "context": "", "response": "function _openid_xrds_discovery($claimed_id): performs XRDS discovery for OpenID and returns an array with the discovered services and claimed identifier, or NULL.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b3cf07b249", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_date_format_types/7.x", "instruction": "What does the system_date_format_types function return and what hook does it implement in Drupal 7?", "context": "", "response": "function system_date_format_types(): Implements hook_date_format_types and returns an array with the translated date format types 'long', 'medium' and 'short'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b3cfccd626", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/theme_poll_choices/7.x", "instruction": "How is the HTML for the poll options administration form generated using theme_poll_choices in Drupal 7?", "context": "", "response": "function theme_poll_choices($variables): Returns the HTML for the poll options administration form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b3de46a862", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/_image_source_image_exists/7.x", "instruction": "What does the _image_source_image_exists function do in Drupal 7 and when does it return TRUE or FALSE?", "context": "", "response": "function _image_source_image_exists($image_uri, $token_is_valid): Checks whether the source image indicated by $image_uri exists in the file system, taking into account token validity and URI scheme.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b3e86d0811", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/db_index_exists/7.x", "instruction": "What does the db_index_exists function do in Drupal 7 and how is it used to check if an index exists in a given table?", "context": "", "response": "function db_index_exists($table, $name): Checks whether the specified index exists in the given table and returns TRUE if it exists or FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b3ea1574ab", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21language.inc/function/language_types_set/7.x", "instruction": "What does the language_types_set function do in Drupal?", "context": "", "response": "function language_types_set(): Updates language type settings, distinguishing between fixed and configurable types and setting their corresponding values.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b3ec4abc49", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dblog%21dblog.admin.inc/function/dblog_filters/7.x", "instruction": "What does the dblog_filters() function do in Drupal 7 and what structure does it return?", "context": "", "response": "function dblog_filters(): Creates a list of applicable database log administration filters, returning an associative array where each key is a form element name and its value contains title, where condition, and options.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b3ed52737c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.compare.inc/function/update_filter_project_info/7.x", "instruction": "What does the update_filter_project_info function do in Drupal 7 and what is its purpose?", "context": "", "response": "function update_filter_project_info($info): Filters project .info data to retain only the attributes necessary for the update manager.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b3ed876aff", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_delete_node_index/7.x", "instruction": "What does the taxonomy_delete_node_index method do regarding taxonomy indexes?", "context": "", "response": "function taxonomy_delete_node_index($node): Deletes taxonomy index entries for a given node.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b400018623", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/db_field_set_no_default/7.x", "instruction": "How is db_field_set_no_default used to remove the default value from a field in Drupal 7?", "context": "", "response": "function db_field_set_no_default($table, $field): Sets a field to have no default value, delegating the operation to the active database connection.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b400474587", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/constant/FILE_NOT_EXIST/7.x", "instruction": "What does the constant FILE_NOT_EXIST indicate in Drupal 7?", "context": "", "response": "define('FILE_NOT_EXIST', 16);: Indicates that the file does not exist during installation permission checking.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-b417a5ae4b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21mail.inc/function/_drupal_html_to_mail_urls/7.x", "instruction": "What does the function _drupal_html_to_mail_urls do in Drupal?", "context": "", "response": "function _drupal_html_to_mail_urls($match = NULL, $reset = FALSE): Converts HTML strings into placeholder URLs and replaces internal links as needed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b42a11301b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.module/function/shortcut_set_title_exists/7.x", "instruction": "How is it checked in Drupal 7 whether a shortcut set with a specific title already exists?", "context": "", "response": "function shortcut_set_title_exists($title): Checks whether a shortcut set exists with the given title and returns TRUE if it exists, FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b445a6db22", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_preprocess_block/7.x", "instruction": "What does the function system_preprocess_block do in Drupal 7 and how does it modify block variables?", "context": "", "response": "function system_preprocess_block(&$variables): Adds the class 'block-menu' to system blocks that correspond to system menus, so they have the same style as blocks from the menu module.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b45bb6a947", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.api.php/function/hook_taxonomy_vocabulary_load/7.x", "instruction": "How can a module intervene in the taxonomy vocabulary loading process to modify them before they are returned?", "context": "", "response": "function hook_taxonomy_vocabulary_load($vocabularies): allows modules to modify taxonomy vocabulary objects before they are returned by taxonomy_vocabulary_load_multiple()", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b46912244c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21announcements_feed%21announcements_feed.inc/function/announcements_feed_get_announcements/7.x", "instruction": "What does the function announcements_feed_get_announcements do in Drupal 7?", "context": "", "response": "function announcements_feed_get_announcements(): Returns a render array with the announcements obtained from the feed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b472007712", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_page_alter/7.x", "instruction": "How does the function book_page_alter implement hook_page_alter to add the book menu to the active trail when viewing a book page in Drupal 7?", "context": "", "response": "function book_page_alter(&$page): Adds the book menu to the list of menus used to build the active trail when viewing a book page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b47449aada", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21rdf%21rdf.module/function/theme_rdf_template_variable_wrapper/7.x", "instruction": "What does the function theme_rdf_template_variable_wrapper do in the Drupal 7 RDF module?", "context": "", "response": "function theme_rdf_template_variable_wrapper($variables): Returns the HTML of a template variable wrapped in a or element with the specified RDF attributes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b48ea6e0f0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_attach_validate/7.x", "instruction": "What does hook_field_attach_validate do in Drupal?", "context": "", "response": "function hook_field_attach_validate($entity_type, $entity, &$errors): This hook runs after the field module performs the operation and ensures that any image in article nodes has alternative text configured.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b4c32b32f9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/themes%21garland%21template.php/function/garland_preprocess_region/7.x", "instruction": "What does the garland_preprocess_region function do in the Garland theme of Drupal 7?", "context": "", "response": "function garland_preprocess_region(&$variables): Adds the 'clearfix' class to the classes array of the 'header' region to clear the float.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b4dd7cec79", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_delete/7.x", "instruction": "What does the file_delete function do in Drupal 7 and how does it handle the $force parameter to delete a file and its database record?", "context": "", "response": "function file_delete(stdClass $file, $force = FALSE): Deletes the specified file and its record in the file_managed table; if $force is not TRUE and the file is in use according to file_usage_list(), it returns an array of references and does not delete it; if it can be deleted, it physically removes the file, deletes its file_managed and file_usage entries, clears the cache, and returns TRUE or FALSE depending on success.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b4f75599ec", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_storage_info_alter/7.x", "instruction": "How can I alter field storage type information via hook_field_storage_info_alter in Drupal 7?", "context": "", "response": "function hook_field_storage_info_alter(&$info): allows modifying the array of field storage type information provided by hook_field_storage_info().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b52f808ecd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/_menu_router_build/7.x", "instruction": "What does the _menu_router_build function do in Drupal 7 and what does it build from hook_menu()?", "context": "", "response": "function _menu_router_build($callbacks): builds the router table from data defined by hook_menu().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b54813988e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.install/function/image_uninstall/7.x", "instruction": "What does the image_uninstall function do in the Image module of Drupal 7?", "context": "", "response": "function image_uninstall(): removes the styles directory and generated images when uninstalling the module.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b5492f5c1d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_ranking/7.x", "instruction": "How does the comment_ranking function implement hook_ranking in the comment module of Drupal 7?", "context": "", "response": "function comment_ranking(): Returns an array defining the 'Number of comments' ranking criterion using the node_comment_statistics table and an inverse formula based on the comment count.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b56b15cf55", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_drupal_goto_alter/7.x", "instruction": "What does hook_drupal_goto_alter do in Drupal 7?", "context": "", "response": "function hook_drupal_goto_alter(&$path, &$options, &$http_response_code): allows modules to alter the path, URL options, and HTTP response code of the redirect performed by drupal_goto().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b57ecb9b6a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.api.php/function/hook_search_access/7.x", "instruction": "What does hook_search_access do in Drupal 7 and what permissions does it define for searches?", "context": "", "response": "function hook_search_access(): Defines access to a custom search routine and allows a module to define permissions for a search tab.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b5807a9454", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/_book_flatten_menu/7.x", "instruction": "What is the _book_flatten_menu function used for in Drupal 7 and how does it transform the book menu structure?", "context": "", "response": "function _book_flatten_menu($tree, &$flat): Recursively traverses a menu link tree and stores them in a flat array by reference, omitting hidden links.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b58c1df83f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.module/function/file_get_file_references/7.x", "instruction": "What does the file_get_file_references function do in Drupal 7 and what parameters does it accept?", "context": "", "response": "function file_get_file_references($file, $field = NULL, $age = FIELD_LOAD_REVISION, $field_type = 'file', $check_access = TRUE): Retrieves references to a file, optionally filtering by field, field type, revision age, and user access permissions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b58fa3c265", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/image_image_style_delete/7.x", "instruction": "What does the image_image_style_delete function do in Drupal 7?", "context": "", "response": "function image_image_style_delete($style): Implements hook_image_style_delete by calling image_image_style_save to save the image style.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b5987866bb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21unicode.inc/constant/UNICODE_MULTIBYTE/7.x", "instruction": "What does the UNICODE_MULTIBYTE constant defined in includes/unicode.inc in Drupal 7 do?", "context": "", "response": "define('UNICODE_MULTIBYTE', 1);: Indicates that full Unicode support is being used with the PHP mbstring extension.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-b59e611a5e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_common_theme/7.x", "instruction": "What does the drupal_common_theme() function do in Drupal 7?", "context": "", "response": "function drupal_common_theme(): Registers available themes (theme hooks) for use in Drupal .inc files.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b5b2fdce53", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7016/7.x", "instruction": "What does the system_update_7016 function do when updating from Drupal 6.x to 7.x in a PostgreSQL database?", "context": "", "response": "function system_update_7016(): Removes the *_unsigned custom data types in PostgreSQL, converting them to integer types and adding not-negative constraints.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b5ec558f6a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/constant/MENU_NOT_FOUND/7.x", "instruction": "What value and purpose does the MENU_NOT_FOUND constant have in Drupal 7's menu system?", "context": "", "response": "define('MENU_NOT_FOUND', 2);: Defines status code 2 indicating the requested route was not found, used as a return value in page callbacks although a load function is preferred.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-b5fb5fd7b8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.install/function/poll_schema/7.x", "instruction": "What does the poll_schema function define in the Drupal 7 poll module?", "context": "", "response": "function poll_schema(): implements hook_schema() and returns the definition of the poll, poll_choice, and poll_vote tables with their fields, primary keys, foreign keys, and indexes for storing surveys, their choices, and user votes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b6080c2df9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_render_cid_create/7.x", "instruction": "What does the drupal_render_cid_create function do in Drupal 7 and how does it generate the cache ID for a renderable element?", "context": "", "response": "function drupal_render_cid_create($elements): generates the cache ID string by first checking #cache['cid'] or building it from #cache['keys'] and granularity, returning FALSE if it cannot be cached.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b615d73381", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/misc%21typo3%21phar-stream-wrapper%21src%21Phar%21Stub.php/class/Stub/7.x", "instruction": "What does the fromContent method of the Stub class do in Drupal 7 and how does it determine the mapped alias from the provided content?", "context": "", "response": "public static function fromContent($content): Creates a Stub instance, stores the content, and if it includes Phar::mapPhar(), extracts and cleans the mapped alias by removing spaces and quotes.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-b62c3cd112", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_menu/7.x", "instruction": "What menu items does the poll_menu function define in the Drupal 7 poll module?", "context": "", "response": "function poll_menu(): implements hook_menu and returns routes for the survey main page, the votes tab, and the results tab for each node.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b6429991c5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21translation%21translation.module/function/translation_node_insert/7.x", "instruction": "What does the translation_node_insert() function in translation.module do in Drupal 7 when inserting a node with a translation source?", "context": "", "response": "function translation_node_insert($node): Implements hook_node_insert() to manage translation sets: adds the node to an existing set or creates a new one using the source nid, updates tnid and translate in the database, and clears the cache of the original node.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b65f8093d7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21path.inc/function/drupal_match_path/7.x", "instruction": "How does drupal_match_path check if a path matches a set of patterns in Drupal 7?", "context": "", "response": "function drupal_match_path($path, $patterns): Checks if a path matches any of the specified patterns, separated by newlines, and returns TRUE if there is a match or FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b6657af935", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_menu/7.x", "instruction": "What does the forum_menu() function of the forum module define in Drupal 7 when implementing hook_menu()?", "context": "", "response": "function forum_menu(): registers menu routes for displaying forums, managing hierarchies, and adding/editing containers and forums.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b67143e31b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/themes%21seven%21template.php/function/seven_preprocess_page/7.x", "instruction": "What does the seven_preprocess_page(&$vars) function do in the Seven theme of Drupal 7?", "context": "", "response": "function seven_preprocess_page(&$vars): overrides or inserts variables in the page template, assigning primary and secondary tabs from $vars['tabs'].", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b67fc394a7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.install/function/image_update_7000/7.x", "instruction": "What does the image_update_7000 function do in the Drupal 7 image module?", "context": "", "response": "function image_update_7000(): Installs the database schema for users upgrading from the contributed module, creating the cache_image, image_styles, and image_effects tables if they do not exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b689ca82f2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/_menu_check_rebuild/7.x", "instruction": "What does the _menu_check_rebuild function check in Drupal 7 to determine if a menu rebuild is necessary?", "context": "", "response": "function _menu_check_rebuild(): Checks whether a menu rebuild needs to be executed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b691e0251c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/_drupal_exception_handler/7.x", "instruction": "What does the _drupal_exception_handler function do in Drupal 7?", "context": "", "response": "function _drupal_exception_handler($exception): Provides custom handling of uncaught PHP exceptions, logs the error to watchdog, and returns an error page to the user, also handling nested exceptions during the process.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b692411afa", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.pages.inc/function/user_pass_reset/7.x", "instruction": "What does the user_pass_reset function do in Drupal 7 and how does it avoid disclosing password reset hashes?", "context": "", "response": "function user_pass_reset($form, &$form_state, $uid, $timestamp, $hashed_pass, $action = NULL): Processes single sign-on links and redirects to the user page, always issuing a redirect to avoid disclosing hashes via Referer headers or browser history.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b6951c2e95", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_prepare_directory/7.x", "instruction": "What does the file_prepare_directory function do in Drupal 7 and how is it used to ensure a directory exists and is writable?", "context": "", "response": "function file_prepare_directory(&$directory, $options = FILE_MODIFY_PERMISSIONS): Checks that the directory exists and is writable, creating it or modifying its permissions according to the specified options and returning TRUE on success.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b69ab29ebc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.api.php/function/hook_block_view/7.x", "instruction": "How is hook_block_view implemented to provide the view of a custom block in Drupal 7?", "context": "", "response": "function hook_block_view($delta = ''): It returns an array with the keys 'subject' and 'content' that defines the view of a block according to its identifier $delta.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b6ac3c9187", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21trigger%21trigger.module/function/trigger_comment_view/7.x", "instruction": "What does the function trigger_comment_view($comment) of the trigger module do in Drupal 7?", "context": "", "response": "function trigger_comment_view($comment): implements hook_comment_view by calling _trigger_comment($comment, 'comment_view').", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b6b2e61690", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_field_extra_fields/7.x", "instruction": "What does the user_field_extra_fields function do when implementing hook_field_extra_fields in the Drupal 7 user module?", "context": "", "response": "function user_field_extra_fields(): Defines the extra fields for the user entity form and display, such as username and password, timezone, and history.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b6f5c955fa", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.field.inc/function/image_field_info/7.x", "instruction": "What does the image_field_info function of the image module define in Drupal 7?", "context": "", "response": "function image_field_info(): implements hook_field_info and returns the definition of the 'image' field type with its label, description, settings, instance settings, default widget, and default formatter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b702dde2a2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.module/function/menu_form_node_type_form_alter/7.x", "instruction": "What does the menu_form_node_type_form_alter function do in Drupal 7?", "context": "", "response": "function menu_form_node_type_form_alter(&$form, $form_state): implements hook_form_FORM_ID_alter to add menu options to the node type form, including a fieldset with checkboxes for available menus and a default parent item selector.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b748c7c2b7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/constant/COMMENT_NOT_PUBLISHED/7.x", "instruction": "What value and meaning does the COMMENT_NOT_PUBLISHED constant have in Drupal 7?", "context": "", "response": "define('COMMENT_NOT_PUBLISHED', 0);: Defines the value 0 to indicate that a comment is pending approval.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-b74c1cd8bf", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpc.inc/function/xmlrpc_message/7.x", "instruction": "What does the xmlrpc_message() function do in Drupal 7 and what type of object does it return?", "context": "", "response": "function xmlrpc_message($message): Builds an object representing an XML-RPC message from an XML string.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b74e18765d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/url_is_external/7.x", "instruction": "How does Drupal 7 determine if a route is external via the url_is_external function?", "context": "", "response": "function url_is_external($path): evaluates whether a route is external to Drupal by returning TRUE when it starts with //, contains control characters, or has a safe protocol before any /?#.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b765ff5f58", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21tracker%21tracker.module/function/tracker_comment_update/7.x", "instruction": "What does the tracker_comment_update function do in Drupal 7 when updating a comment?", "context": "", "response": "function tracker_comment_update($comment): implements hook_comment_update() and removes comment tracking when its status is not COMMENT_PUBLISHED.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b76ac612a2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/class/DrupalCacheArray/7.x", "instruction": "What is the purpose of the persist method of DrupalCacheArray in Drupal 7 and how does it interact with offsetSet?", "context": "", "response": "protected function persist($offset, $persist = TRUE): marks an offset to be written to persistent cache at the end of the request, since offsetSet by default only applies within the object scope.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-b777eadf7e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.core.inc/function/install_system_module/7.x", "instruction": "What does the install_system_module function do during Drupal 7 installation?", "context": "", "response": "function install_system_module(&$install_state): Installs the Drupal system module, ensures .htaccess files, enables the user module, saves the list of modules to install, and marks that database tables exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b7a934844e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/external_documentation%21developer%21globals.php/global/user/7.x", "instruction": "What is the global $user variable in Drupal 7 and what information does it contain about the current user?", "context": "", "response": "global $user;: Represents the current user visiting the site, with their preferences and account data; uid is 0 if not logged in.", "tags": ["api-reference", "global"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b7aa110411", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.install/function/image_install/7.x", "instruction": "What does the image_install function do in Drupal 7 and what does it implement?", "context": "", "response": "function image_install(): Implements hook_install() and creates the styles directory ensuring it is writable.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b7c5a9d957", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.module/function/shortcut_permission/7.x", "instruction": "What permissions does the shortcut module define in Drupal 7 through hook_permission?", "context": "", "response": "function shortcut_permission(): Implements hook_permission and returns an array with three permissions: administer shortcuts, customize shortcut links, and change shortcut sets.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b7cad4bc50", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_make_unsticky_action/7.x", "instruction": "What does the node_make_unsticky_action function do in Drupal 7?", "context": "", "response": "function node_make_unsticky_action($node, $context = array()): Sets the node's sticky property to NODE_NOT_STICKY (0) and logs a message in watchdog indicating the node was marked as unstuck.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b7d3d9a787", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21text%21text.module/function/text_field_info/7.x", "instruction": "What field types does the text_field_info function define when implementing hook_field_info in Drupal 7?", "context": "", "response": "function text_field_info(): Defines the field types 'text', 'text_long', and 'text_with_summary' with their settings, instance settings, default widgets, and formatters.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b7e5f68a44", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21unicode.inc/constant/UNICODE_ERROR/7.x", "instruction": "What does the UNICODE_ERROR constant mean and what value does it have in Drupal 7?", "context": "", "response": "define('UNICODE_ERROR', -1);: Indicates an error during the PHP unicode support check.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-b7e82dbdaf", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21contact%21contact.module/function/contact_permission/7.x", "instruction": "What permissions does the contact_permission function define in Drupal 7?", "context": "", "response": "function contact_permission(): Defines three permissions: administer contact forms, use the site-wide contact form, and use personal contact forms.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b7ecb8fc40", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21contact%21contact.admin.inc/function/contact_category_list/7.x", "instruction": "What does the contact_category_list function do in Drupal 7's contact administration?", "context": "", "response": "function contact_category_list(): Generates a renderable table with contact categories, showing name, recipients, selection status, and edit/delete links.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b7edbfe196", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7049/7.x", "instruction": "What does the function system_update_7049() do in Drupal 7?", "context": "", "response": "function system_update_7049(): Renames the installation profile 'default' to 'standard' when configured to do so.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b7f835005e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21module.inc/function/module_invoke_all/7.x", "instruction": "How does module_invoke_all work to invoke a hook in all enabled modules that implement it in Drupal 7?", "context": "", "response": "function module_invoke_all($hook): invokes the specified hook in all enabled modules that implement it, passing arguments by value and returning an array with return values merged recursively if they are arrays.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b7ffe0130e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.pages.inc/function/_aggregator_page_list/7.x", "instruction": "What does the function _aggregator_page_list do in Drupal 7 and how are its parameters used?", "context": "", "response": "function _aggregator_page_list($items, $op, $feed_source = ''): Prints an aggregator page listing various feed items, used by menu callbacks.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b814a1dd34", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/theme_admin_block/7.x", "instruction": "How does Drupal 7 generate the HTML of an administrative block via theme_admin_block() and what content does it display based on the block data?", "context": "", "response": "function theme_admin_block($variables): Returns the HTML of an administrative block wrapping the title, content, or description in a div with class admin-panel, and displays nothing if 'show' is empty.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b81cf1428f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_is_active/7.x", "instruction": "How does the function search_is_active determine if the search path is accessible in Drupal 7?", "context": "", "response": "function search_is_active(): verifies that the user has the 'search content' permission and that at least one active search module exists via search_get_info().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b84f86730c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_unserialize/7.x", "instruction": "What does the function menu_unserialize do in Drupal 7?", "context": "", "response": "function menu_unserialize($data, $map): unserializes menu data stored in the database and replaces integer values in the resulting array with the corresponding elements from the $map array (usually path arguments), returning the processed array or an empty one if deserialization fails.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b8522203d8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpcs.inc/function/xmlrpc_server_error/7.x", "instruction": "What does the function xmlrpc_server_error do in Drupal 7 and how does it construct the XML-RPC error response?", "context": "", "response": "function xmlrpc_server_error($error, $message = FALSE): generates the XML-RPC output of an error from an error code or object and an optional message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b8546882de", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21filetransfer%21filetransfer.inc/class/FileTransferException/7.x", "instruction": "What does the $arguments property of the FileTransferException class represent in Drupal 7?", "context": "", "response": "public $arguments;: stores the additional arguments passed to the exception constructor.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-b860e494af", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_validate_machine_name/7.x", "instruction": "What validations does the form_validate_machine_name handler perform for machine_name elements in Drupal 7?", "context": "", "response": "function form_validate_machine_name(&$element, &$form_state): validates that the machine name does not consist only of replacement tokens, does not contain disallowed characters, and is unique via the existence check function.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b867db0e7d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.attach.inc/function/field_attach_prepare_translation/7.x", "instruction": "What is the exact signature of field_attach_prepare_translation in Drupal 7 and what does it do?", "context": "", "response": "function field_attach_prepare_translation($entity_type, $entity, $langcode, $source_entity, $source_langcode): prepares an entity for translation by copying field values from the source language to the target entity and assigning them the target language.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b86ab4d86d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_requirements/7.x", "instruction": "What does the hook_requirements function do in Drupal 7 and what parameter does it receive to determine the check phase?", "context": "", "response": "function hook_requirements($phase): checks installation or update requirements and generates a status report based on the phase (install, update, or runtime).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b86beac716", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_trigger_fatal_error/7.x", "instruction": "What does the drupal_trigger_fatal_error function do in Drupal 7 and why is it necessary if the usual error handler does not stop execution?", "context": "", "response": "function drupal_trigger_fatal_error($error_msg): triggers an E_USER_ERROR that is forced as fatal to terminate script execution, since Drupal's normal error handler does not stop the request on user errors.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b877b85574", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.module/function/aggregator_filter_xss/7.x", "instruction": "What does the aggregator_filter_xss function do in Drupal 7 and what parameter does it receive?", "context": "", "response": "function aggregator_filter_xss($value): filters HTML content allowing only the safe tags defined in aggregator_allowed_html_tags.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b8b21abbf1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_menu/7.x", "instruction": "What does the book_menu() function do that implements hook_menu() in the Book module of Drupal 7?", "context": "", "response": "function book_menu(): implements hook_menu() registering Book module routes for managing outlines, listing books, configuring settings, reordering pages, rendering the index, exporting, and managing node outlines.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b8cfe74f7c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale/7.x", "instruction": "What does the locale function do in Drupal 7 and how does it handle string translation?", "context": "", "response": "function locale($string = NULL, $context = NULL, $langcode = NULL): Provides interface translation services, is called by t() to translate strings, searches in static cache and database, and stores found translations or marks untranslated ones for future searches.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b8ddc503e9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/theme_text_format_wrapper/7.x", "instruction": "What does the theme_text_format_wrapper function return in Drupal 7 and what content does it wrap?", "context": "", "response": "function theme_text_format_wrapper($variables): returns HTML for a text format form element, wrapping #children and #description in a div with class text-format-wrapper.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b8e039c25d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_permission_get_modules/7.x", "instruction": "How does the function user_permission_get_modules obtain the list of modules to which permissions belong in Drupal 7?", "context": "", "response": "function user_permission_get_modules(): iterates over modules that implement hook_permission, invokes that hook, and returns an associative array where each key is the permission name and its value is the module that defines it.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b8f34e5622", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_password/7.x", "instruction": "How to generate a custom-length alphanumeric random password using the user_password function in Drupal 7?", "context": "", "response": "function user_password($length = 10): generates a random alphanumeric password of the specified length, excluding ambiguous characters such as 0, O, I, 1, and l.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b903760a72", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_ajax_render_alter/7.x", "instruction": "What does the hook_ajax_render_alter function do in Drupal 7?", "context": "", "response": "function hook_ajax_render_alter(&$commands): alters the commands sent to the user through the Ajax framework.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b90903c6e5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_menu_subtree_data/7.x", "instruction": "What does the book_menu_subtree_data function do in Drupal 7 and what data does it return about the book hierarchy?", "context": "", "response": "function book_menu_subtree_data($link): Retrieves the data representing a subtree of the book hierarchy, including the root link passed as a parameter and all its descendants in the menu tree.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b92bb26d81", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.admin.inc/function/search_admin_settings_submit/7.x", "instruction": "What does the search_admin_settings_submit submit handler of the search module do in Drupal 7?", "context": "", "response": "function search_admin_settings_submit($form, &$form_state): rebuilds the index if minimum_word_size or overlap_cjk change, and marks the menu for rebuild if active search modules change.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b931038c97", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.inc/function/_openid_invalid_openid_transition/7.x", "instruction": "What does the _openid_invalid_openid_transition($identity, $response) function of the OpenID module do in Drupal 7?", "context": "", "response": "function _openid_invalid_openid_transition($identity, $response): Attempts to load a user from a possibly invalid OpenID identifier by applying several fallbacks (removing fragments, changing HTTPS to HTTP, using the session identifier) and, if it finds an account with a matching email, updates its authmap mapping and returns the user object; otherwise returns FALSE or displays a warning message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b94a649e08", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21theme.api.php/function/hook_process/7.x", "instruction": "What does the hook_process(&$variables, $hook) function do in Drupal 7 and what is its purpose?", "context": "", "response": "function hook_process(&$variables, $hook): Processes theme variables for templates, modifying them in place before rendering.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b950885fc2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/function/drupal_install_fix_file/7.x", "instruction": "What does the drupal_install_fix_file function do in Drupal 7 and how does it fix file permissions?", "context": "", "response": "function drupal_install_fix_file($file, $mask, $message = TRUE): attempts to fix file permissions by applying changes to the three permission digits using bitwise operations on the octal value and returns TRUE or FALSE depending on whether chmod succeeded.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b97c1611de", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_update_files_database/7.x", "instruction": "What does the system_update_files_database function do in Drupal 7?", "context": "", "response": "function system_update_files_database(&$files, $type): updates records in the system table for modules or themes by comparing the provided files array with the database, updates modified fields, removes records of missing files that were never installed, inserts new files, and resets the system_list cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b97ef6af69", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21list%21list.install/function/list_field_schema/7.x", "instruction": "What does the list_field_schema function do in Drupal 7 and what database schema does it define based on the list field type?", "context": "", "response": "function list_field_schema($field): implements hook_field_schema() and returns the table columns and indexes based on the list field type (text, float, integer, or boolean).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b9a10eadec", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_date_time_formats/7.x", "instruction": "What does the system_date_time_formats function do in Drupal 7?", "context": "", "response": "function system_date_time_formats(): Displays the overview page of custom date format strings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b9ab6b4835", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/constant/FILE_EXIST/7.x", "instruction": "What does the FILE_EXIST constant do in Drupal 7?", "context": "", "response": "define('FILE_EXIST', 1);: Checks that a file exists, used as a flag in file permission checks.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-b9b464bbc3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21stream_wrappers.inc/constant/STREAM_WRAPPERS_WRITE_VISIBLE/7.x", "instruction": "What does the STREAM_WRAPPERS_WRITE_VISIBLE constant define in Drupal 7?", "context": "", "response": "define('STREAM_WRAPPERS_WRITE_VISIBLE', STREAM_WRAPPERS_READ | STREAM_WRAPPERS_WRITE | STREAM_WRAPPERS_VISIBLE);: Defines a stream wrapper type flag that combines read, write, and visibility permissions.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-b9c8e09350", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21php%21php.module/function/_php_filter_tips/7.x", "instruction": "What tips string does the _php_filter_tips function return when passed $long = TRUE in Drupal 7?", "context": "", "response": "function _php_filter_tips($filter, $format, $long = FALSE): Returns a usage tips string for the PHP filter, showing extensive help when $long is TRUE and brief help when FALSE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b9d316c958", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.parser.inc/function/aggregator_element_start/7.x", "instruction": "What does the aggregator_element_start function do in the Drupal 7 aggregator parser?", "context": "", "response": "function aggregator_element_start($parser, $name, $attributes): Executes an action when an opening tag is found during feed parsing, setting global variables based on the tag name and its attributes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b9e5b091e7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21module.inc/function/system_list_reset/7.x", "instruction": "What does the system_list_reset() function do in Drupal 7 and exactly what caches does it clear?", "context": "", "response": "function system_list_reset(): resets all system_list() caches, clears internal static caches, and deletes cache_bootstrap entries.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b9ef414537", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/function/locale_language_from_session/7.x", "instruction": "How does the function locale_language_from_session determine the language from request or session parameters in Drupal 7?", "context": "", "response": "function locale_language_from_session($languages): Identifies the language from a request or session parameter and returns a valid language code or FALSE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-b9f3adc028", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_storage_purge_field_instance/7.x", "instruction": "What does the function hook_field_storage_purge_field_instance do in Drupal 7 and when is it called?", "context": "", "response": "function hook_field_storage_purge_field_instance($instance): Removes the storage information of the field instance being purged.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ba3a254ee0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.admin.inc/function/profile_field_delete_submit/7.x", "instruction": "What does the function profile_field_delete_submit do when processing the profile field deletion form submission in Drupal 7?", "context": "", "response": "function profile_field_delete_submit($form, &$form_state): Removes the profile field and its values from the database, clears the cache, displays a confirmation message, logs the action in watchdog, and redirects to the profile administration page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ba68f531c7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_get_plural/7.x", "instruction": "What does the function locale_get_plural do in Drupal 7 and what parameters does it accept?", "context": "", "response": "function locale_get_plural($count, $langcode = NULL): Returns the numeric index of the plural variant for the given number and language code, calculated from the language's plural formula, or -1 if the language is not found or lacks a plural formula.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ba6bf4e3a1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.module/function/file_ajax_upload/7.x", "instruction": "What does the function file_ajax_upload do in Drupal 7 and what is it used for as an Ajax callback?", "context": "", "response": "function file_ajax_upload(): It is a shared Ajax callback for file uploads and deletions that rebuilds the form element corresponding to a given field.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ba91763076", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/constant/DRUPAL_BOOTSTRAP_SESSION/7.x", "instruction": "What does the constant DRUPAL_BOOTSTRAP_SESSION represent in Drupal 7?", "context": "", "response": "define('DRUPAL_BOOTSTRAP_SESSION', 4);: Defines the fifth phase of Drupal bootstrap, where session handling is initialized.", "tags": ["api-reference", "constant"], "created_at": "2026-09-29"}
{"id": "doc-drupal7-ba9bd881a6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.install/function/block_update_7002/7.x", "instruction": "What does the function block_update_7002 do in Drupal 7?", "context": "", "response": "function block_update_7002(): Removes the 'list' index from the {blocks} table and renames the tables {blocks}, {blocks_roles}, and {boxes} to {block}, {block_role}, and {block_custom} respectively.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-baa51632cd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.admin.inc/function/locale_translate_import_form/7.x", "instruction": "What does the function locale_translate_import_form build in Drupal 7 and what import mode options does it expose?", "context": "", "response": "function locale_translate_import_form($form): Generates the translation import form with .po file field, destination language selection, text group, mode (overwrite or keep), and submit button.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-baad642fe1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_ip_blocking_form_submit/7.x", "instruction": "What does the Drupal 7 function system_ip_blocking_form_submit do?", "context": "", "response": "function system_ip_blocking_form_submit($form, &$form_state): Inserts the entered IP into the blocked_ips table, displays a confirmation message, and redirects to the IP blocking administration page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-baae4ecfc7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_message_action/7.x", "instruction": "What does the Drupal 7 function system_message_action do?", "context": "", "response": "function system_message_action(&$entity, $context = array()): sends a message to the current user after replacing tokens and applying filter_xss_admin.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bab737fe9c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.pages.inc/function/node_delete_confirm/7.x", "instruction": "How is the confirmation form for deleting a node built in Drupal 7 using the function node_delete_confirm?", "context": "", "response": "function node_delete_confirm($form, &$form_state, $node): Builds the confirmation form for deleting a node, assigns the node and its nid to the form, and returns a confirmation form with the appropriate messages and routes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bb16138d3d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.inc/function/openid_redirect_http/7.x", "instruction": "What does the Drupal 7 function openid_redirect_http do and how does it build the HTTP redirect?", "context": "", "response": "function openid_redirect_http($url, $message): performs an HTTP 302 redirect by encoding the key/value pairs of $message as a query string in the URL and ends execution with drupal_exit().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bb1c23e66f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21rdf%21rdf.module/function/theme_rdf_metadata/7.x", "instruction": "What does the Drupal 7 function theme_rdf_metadata do and how does it generate empty spans for RDFa metadata?", "context": "", "response": "function theme_rdf_metadata($variables): Returns HTML composed of a series of empty spans that allow exporting RDF metadata in RDFa format.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bb4143f8e5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_help/7.x", "instruction": "What does the Drupal 7 function forum_help do and for what routes does it provide help texts?", "context": "", "response": "function forum_help($path, $arg): Implements hook_help() to return help texts about forum structure, topic creation, navigation, and comment configuration on the Forum module administration routes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bb41f84161", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/check_url/7.x", "instruction": "What does the Drupal 7 function check_url do and how does it sanitize a URI for HTML output?", "context": "", "response": "function check_url($uri): removes dangerous protocols from the URI and encodes it for safe output in an HTML attribute, combining drupal_strip_dangerous_protocols and check_plain.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bb487aa94a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/template_preprocess_forum_icon/7.x", "instruction": "What does the Drupal 7 function template_preprocess_forum_icon do when processing forum icon theme variables?", "context": "", "response": "function template_preprocess_forum_icon(&$variables): Defines the icon class and title based on whether the topic is popular, has new posts, closed comments, or is sticky.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bbc480afef", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/_drupal_samesite_cookie/7.x", "instruction": "How does Drupal 7 determine the SameSite attribute value of a cookie using the _drupal_samesite_cookie function?", "context": "", "response": "function _drupal_samesite_cookie($options): Returns the SameSite attribute value for a cookie following the precedence order: explicit option, variable configuration, session ini, or None/FALSE based on the secure flag.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bbc63f81cb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_process_container/7.x", "instruction": "What does the form_process_container function do when processing a container-type element in Drupal 7?", "context": "", "response": "function form_process_container($element, &$form_state): Generates the element ID if not set and returns the processed element.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bbca14dfe2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_locale/7.x", "instruction": "What does the locale_locale function return when invoked with the 'groups' operation in Drupal 7?", "context": "", "response": "function locale_locale($op = 'groups'): Implements hook_locale and returns an array with the 'default' group labeled as 'Built-in interface' when $op is 'groups'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bbeb012253", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpc.inc/function/xmlrpc_message_parse/7.x", "instruction": "How is an XML-RPC message parsed in Drupal and what does the xmlrpc_message_parse function do?", "context": "", "response": "function xmlrpc_message_parse($xmlrpc_message): Parses an XML-RPC message, setting up a parser, cleaning XML and DTD declarations, validating the root tag, and extracting message information or handling parse errors, returning TRUE on success or FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bbf209b3c8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpcs.inc/function/xmlrpc_server_get/7.x", "instruction": "What does the xmlrpc_server_get function do in Drupal 7?", "context": "", "response": "function xmlrpc_server_get(): Returns the last stored XML-RPC request.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bbf2ce81c0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/theme_node_recent_content/7.x", "instruction": "What does the theme_node_recent_content($variables) function do in Drupal 7?", "context": "", "response": "function theme_node_recent_content($variables): Generates HTML to display a recent node in the recent content block.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bc0cdd804b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/constant/FILE_STATUS_PERMANENT/7.x", "instruction": "What does the FILE_STATUS_PERMANENT constant mean in Drupal 7 and what effect does it have on files?", "context": "", "response": "define('FILE_STATUS_PERMANENT', 1);: Indicates that the file is permanent and should not be deleted, since old temporary files are deleted in cron but permanent ones are not.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-bc13cb209e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21lock.inc/function/_lock_id/7.x", "instruction": "How is the unique lock ID for the current request generated and obtained in Drupal 7?", "context": "", "response": "function _lock_id(): Generates and returns a unique ID for the current request using a static value, and registers a shutdown function to release all locks if it is the first time it is called.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bc311fec10", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/update.php/function/update_results_page/7.x", "instruction": "What does the update_results_page() function do in Drupal 7?", "context": "", "response": "function update_results_page(): Displays the update script results along with any associated error.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bc4ae33938", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21mysql%21install.inc/class/DatabaseTasks_mysql/7.x", "instruction": "What does the name() method of DatabaseTasks_mysql return in Drupal 7?", "context": "", "response": "public function name(): returns the readable MySQL, MariaDB, or equivalent name.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-bc5066cc73", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dashboard%21dashboard.api.php/function/hook_dashboard_regions_alter/7.x", "instruction": "How to alter dashboard regions provided by modules in Drupal 7 using hook_dashboard_regions_alter?", "context": "", "response": "function hook_dashboard_regions_alter(&$regions): alters the dashboard regions allowing modules to modify or remove regions from the provided array, for example removing the dashboard_sidebar region.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bc82466860", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.module/function/shortcut_renderable_links/7.x", "instruction": "How does shortcut_renderable_links get the shortcut links to render?", "context": "", "response": "function shortcut_renderable_links($shortcut_set = NULL): Returns an array of shortcut links suitable for rendering, using the current user's set if none is provided.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bc9f32b7f5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_type_select_value/7.x", "instruction": "How does the form_type_select_value function determine the value of a select form element in Drupal 7?", "context": "", "response": "function form_type_select_value($element, $input = FALSE): Determines the value for a select form element, handling multiple selections, disabled elements, and empty values according to the provided input.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bca396e19f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_children/7.x", "instruction": "What does the book_children($book_link) function return in Drupal 7?", "context": "", "response": "function book_children($book_link): Formats the menu links for the child pages of the current page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bccbaa2d6d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/_book_add_form_elements/7.x", "instruction": "What does the _book_add_form_elements function do in Drupal 7?", "context": "", "response": "function _book_add_form_elements(&$form, &$form_state, $node): builds the common book form elements (Book outline fieldset, parent selector, weight, and book dropdown with AJAX) for node and book schema forms.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bcd87e5b0d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.install/function/filter_update_7001/7.x", "instruction": "What does the filter_update_7001 function do in Drupal 7?", "context": "", "response": "function filter_update_7001(): migrates the HTML escape filter option from variables to the filters table, creating a filter entry for each format where that option was enabled and then removes the associated variables.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bce94148d9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21field_sql_storage%21field_sql_storage.module/function/field_sql_storage_field_storage_write/7.x", "instruction": "What does the field_sql_storage_field_storage_write function do when implementing hook_field_storage_write() in Drupal 7 to store field data?", "context": "", "response": "function field_sql_storage_field_storage_write($entity_type, $entity, $op, $fields): implements hook_field_storage_write() to write field data to SQL tables, deleting and reinserting records instead of updating them, managing entity revisions and allowing skipping unchanged fields via a configurable variable.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bcf1faee8f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.api.php/function/hook_comment_view_alter/7.x", "instruction": "How is hook_comment_view_alter used to modify the renderable array of a comment in Drupal 7?", "context": "", "response": "function hook_comment_view_alter(&$build): Allows altering the $build array that represents the comment before rendering.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bcfe3671d2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/constant/LANGUAGE_LTR/7.x", "instruction": "What does the LANGUAGE_LTR constant represent in Drupal 7?", "context": "", "response": "define('LANGUAGE_LTR', 0);: Indicates that the language is written left-to-right, being a possible value of $language->direction.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-bd021f75a1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.install/function/taxonomy_field_schema/7.x", "instruction": "What does the taxonomy_field_schema function return to define the schema of a taxonomy field via hook_field_schema() in Drupal 7?", "context": "", "response": "function taxonomy_field_schema($field): returns an array that defines the 'tid' column, its index, and the foreign key relating it to the taxonomy_term_data table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bd07014939", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21session.inc/function/drupal_session_started/7.x", "instruction": "How can I determine if the PHP session has already started in Drupal 7 using the drupal_session_started function?", "context": "", "response": "function drupal_session_started($set = NULL): returns true if the session has been started and false otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bd0cca882e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_node_update_index/7.x", "instruction": "What does the function search_node_update_index do when a node is updated in Drupal 7?", "context": "", "response": "function search_node_update_index($node): It gets the captions of the search links associated with the node and returns them wrapped in
(...) if they exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bd170154d2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21rdf%21rdf.module/function/rdf_get_namespaces/7.x", "instruction": "What does the rdf_get_namespaces() function do in Drupal 7 and what type of value does it return?", "context": "", "response": "function rdf_get_namespaces(): Returns an associative array of RDF namespaces defined by modules implementing hook_rdf_namespaces(), ensuring each uri is a string and removing duplicates or conflicts.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bd19f9f737", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.compare.inc/function/update_get_projects/7.x", "instruction": "What does the update_get_projects function do in Drupal and what type of data does it return?", "context": "", "response": "function update_get_projects(): Retrieves an array of installed and enabled projects, considering those that include multiple modules or themes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bd4a697deb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/function/block_form_system_performance_settings_alter/7.x", "instruction": "What does the block_form_system_performance_settings_alter(&$form, &$form_state) function do in Drupal 7?", "context": "", "response": "function block_form_system_performance_settings_alter(&$form, &$form_state): Adds a 'Cache blocks' checkbox to the performance settings form, disabling it when block cache is inactive due to modules defining content access restrictions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bd5558aef2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.module/function/aggregator_save_category/7.x", "instruction": "What does the aggregator_save_category method of the aggregator class do in Drupal?", "context": "", "response": "function aggregator_save_category($edit): Adds, edits, or deletes aggregator categories based on the data provided in the $edit parameter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bd6070b894", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.admin.inc/function/shortcut_set_add_form_submit/7.x", "instruction": "How is a new shortcut set created from the user's default set when submitting the add set form in Drupal 7?", "context": "", "response": "function shortcut_set_add_form_submit($form, &$form_state): Saves a new shortcut set by cloning links from the user's default set, displays a confirmation message, and redirects to the edit page of the new set.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bd95bb0401", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21text%21text.install/function/text_update_7000/7.x", "instruction": "What does the text_update_7000 function do in Drupal 7 and what database columns does it modify?", "context": "", "response": "function text_update_7000(): Converts the 'format' columns of text fields to varchar(255).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bdb20093b4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_unmanaged_delete/7.x", "instruction": "What does the file_unmanaged_delete function do when deleting files in Drupal?", "context": "", "response": "function file_unmanaged_delete($path): Deletes a file without making changes to the database or invoking hooks, returning TRUE if the file exists and was deleted successfully, or FALSE on error or if the file does not exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bdca587141", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21path.inc/function/path_is_admin/7.x", "instruction": "How does the path_is_admin function in Drupal decide if a path belongs to the site's administrative section?", "context": "", "response": "function path_is_admin($path): Determines if a given path is in the site's administrative section, returning TRUE if it is administrative and FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bdcf0953f2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_submit/7.x", "instruction": "What does the comment_submit function do in Drupal 7 when preparing a comment for submission?", "context": "", "response": "function comment_submit($comment): Prepares a comment for submission by setting dates, assigning author if registered user, using 'Anonymous' by default for anonymous users, and generating subject from body if empty.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bdecc4132d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_field_is_empty/7.x", "instruction": "How does the taxonomy_field_is_empty function determine if a taxonomy field item is empty in Drupal 7?", "context": "", "response": "function taxonomy_field_is_empty($item, $field): Returns TRUE if $item is not an array or if its 'tid' key is empty and not exactly the string '0', indicating the taxonomy field has no term assigned.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bdee701933", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_validate_name/7.x", "instruction": "What does the user_validate_name function do in Drupal 7 and what validations does it perform on the username?", "context": "", "response": "function user_validate_name($name): Verifies the syntax of the given username, checking that it is not empty, does not start or end with a space, does not contain multiple spaces, illegal characters, or exceed maximum length.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bdefdf041e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/_menu_update_parental_status/7.x", "instruction": "How does the _menu_update_parental_status function update the 'has_children' status of a menu link's parent in Drupal 7?", "context": "", "response": "function _menu_update_parental_status($item, $exclude = FALSE): Checks and updates the 'has_children' field of a menu link's parent.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-be0100afc7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21number%21number.module/function/number_field_formatter_settings_summary/7.x", "instruction": "What does the number_field_formatter_settings_summary function do in Drupal 7 and what configuration summary does it return according to hook_field_formatter_settings_summary?", "context": "", "response": "function number_field_formatter_settings_summary($field, $instance, $view_mode): Implements hook_field_formatter_settings_summary() to generate an HTML summary of numeric formatter settings, showing a formatted example and warning if prefix and suffix are enabled.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-be367f37a3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/theme_system_modules_incompatible/7.x", "instruction": "What does the theme_system_modules_incompatible() function do in Drupal 7 to display incompatible module messages?", "context": "", "response": "function theme_system_modules_incompatible($variables): Wraps the disabled modules message in a div with class 'incompatible'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-be3f589615", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.attach.inc/function/_field_invoke_multiple/7.x", "instruction": "What does the _field_invoke_multiple function do in Drupal 7 and what parameters does it accept?", "context": "", "response": "function _field_invoke_multiple($op, $entity_type, $entities, &$a = NULL, &$b = NULL, $options = array()): Invokes a field hook across multiple entities, grouping fields by id and returning an array of results keyed by entity id.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-be40351c72", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.module/function/openid_association/7.x", "instruction": "What does the openid_association function of the OpenID module do in Drupal 7?", "context": "", "response": "function openid_association($op_endpoint): Attempts to create a shared secret with the OpenID Provider and returns the association identifier.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-be60ba43b9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/function/_block_custom_theme/7.x", "instruction": "What does the _block_custom_theme function do in Drupal 7 and what does it return?", "context": "", "response": "function _block_custom_theme($theme = NULL): Returns exactly the received theme to ensure the page is displayed using the theme whose blocks are being configured.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-be9292858d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_modules_uninstall/7.x", "instruction": "What does the system_modules_uninstall function do in Drupal 7 and what value does it return?", "context": "", "response": "function system_modules_uninstall($form, $form_state = NULL): builds a form with disabled and installed modules to allow their uninstallation, returning the form array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bec105a61a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/constant/SAVED_NEW/7.x", "instruction": "What does the SAVED_NEW constant indicate in Drupal 7?", "context": "", "response": "define('SAVED_NEW', 1);: Indicates that a new item was created when saving a record.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-becfe214e6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.multilingual.inc/function/field_multilingual_settings_changed/7.x", "instruction": "What does the field_multilingual_settings_changed function do in Drupal 7?", "context": "", "response": "function field_multilingual_settings_changed(): implements hook_multilingual_settings_changed and clears the field info cache when multilingual settings change.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bee459f2b7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_url_outbound_alter/7.x", "instruction": "How to alter outbound URLs in Drupal 7 using hook_url_outbound_alter?", "context": "", "response": "function hook_url_outbound_alter(&$path, &$options, $original_path): Allows modifying the path and options of a URL before the link is generated.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-befb000b1d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_block_view/7.x", "instruction": "What does the poll_block_view function in the poll module do in Drupal 7 and how does it generate the last poll block?", "context": "", "response": "function poll_block_view($delta = ''): Generates a block that displays the last active poll if the user has permission to access content.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bf17057a5c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.pages.inc/function/poll_votes/7.x", "instruction": "What does the poll_votes function do in Drupal 7 and how does it list the registered votes for a poll?", "context": "", "response": "function poll_votes($node): queries the poll_vote table joined with poll_choice and users, and returns a paginated and sortable table with the visitor's name/IP, the voted option text, and the timestamp.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bf19a3c4b6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_expand_cjk/7.x", "instruction": "What is the search_expand_cjk function used for in the Search module of Drupal 7 and how does it process CJK text?", "context": "", "response": "function search_expand_cjk($matches): splits CJK text into overlapping consecutive character tokens of length equal to the minimum_word_size value, allowing search in languages without word separation.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bf19a83504", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21mysql%21database.inc/class/DatabaseConnection_mysql/7.x", "instruction": "What does the escapeField method of the DatabaseConnection_mysql class do in Drupal 7?", "context": "", "response": "public function escapeField($field): Escapes a field name by applying quoteIdentifier to quote MySQL reserved words.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-bf2f290950", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_term_is_page/7.x", "instruction": "How does the taxonomy_term_is_page function check if the current page belongs to a specific taxonomy term in Drupal 7?", "context": "", "response": "function taxonomy_term_is_page($term): verifies if the current page corresponds to the passed term by comparing its IDs via menu_get_object.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bf36eef622", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_date_time_settings/7.x", "instruction": "What does the system_date_time_settings function do in Drupal 7?", "context": "", "response": "function system_date_time_settings(): Builds the form to configure the site's date and time.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bf3e49fbc9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_maintenance_theme/7.x", "instruction": "What does the drupal_maintenance_theme function do in Drupal 7 and when is it used?", "context": "", "response": "function drupal_maintenance_theme(): enables the theme system without requiring database access, for installations, updates, and maintenance mode.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bf4405982e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.admin.inc/function/taxonomy_overview_terms/7.x", "instruction": "How does the taxonomy_overview_terms function build the vocabulary term overview form in Drupal 7?", "context": "", "response": "function taxonomy_overview_terms($form, &$form_state, $vocabulary): generates a form with a paginated term tree, supports drag and drop, and displays links to edit each term.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bf53fa587d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21module.inc/function/_module_build_dependencies/7.x", "instruction": "What does the _module_build_dependencies function do in Drupal 7 and what data does it add to the files array?", "context": "", "response": "function _module_build_dependencies($files): determines module dependencies and adds the requires, required_by, and sort keys to the files array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bf5bb06e21", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dashboard%21dashboard.module/function/dashboard_menu/7.x", "instruction": "What does the dashboard_menu function do when implementing hook_menu in Drupal 7?", "context": "", "response": "function dashboard_menu(): Defines menu items for the dashboard administration pages, including display, configuration, and customization routes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bf660e5d18", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21entity.inc/class/EntityFieldQuery/7.x", "instruction": "How is a condition on field values added in EntityFieldQuery in Drupal 7 using fieldCondition() and what happens to entities with empty values?", "context": "", "response": "public function fieldCondition($field, $column = NULL, $value = NULL, $operator = NULL, $delta_group = NULL, $language_group = NULL): adds a condition on field values and excludes entities with empty values from the result.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-bf726c4e9a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_rdf_mapping/7.x", "instruction": "What does the poll_rdf_mapping function do in Drupal 7?", "context": "", "response": "function poll_rdf_mapping(): implements hook_rdf_mapping() and returns the RDF mapping for poll nodes with rdftype sioc:Post and sioct:Poll.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bf89d246c5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.admin.inc/function/theme_taxonomy_overview_vocabularies/7.x", "instruction": "What does the theme_taxonomy_overview_vocabularies function do in Drupal 7 and what does it return?", "context": "", "response": "function theme_taxonomy_overview_vocabularies($variables): generates the HTML for the vocabulary overview form as a sortable list.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bf8a1b4080", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21lock.inc/function/lock_may_be_available/7.x", "instruction": "What is the behavior of lock_may_be_available in Drupal 7 and what does it return if the lock does not exist or has expired?", "context": "", "response": "function lock_may_be_available($name): checks if a lock acquired by another process may be available and removes expired locks", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bf8beb2dc8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_access_grants/7.x", "instruction": "How to get the array of permissions (grants) granted to a user for a specific operation using the node_access_grants function?", "context": "", "response": "function node_access_grants($op, $account = NULL): Gets an associative array of realms and their grants for the user and operation, including the universal 'all' grant and the results of hook_node_grants and drupal_alter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bf8e9c6534", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21field_sql_storage%21field_sql_storage.module/function/field_sql_storage_field_update_forbid/7.x", "instruction": "In what case does field_sql_storage_field_update_forbid forbid updating a field in Drupal 7?", "context": "", "response": "function field_sql_storage_field_update_forbid($field, $prior_field, $has_data): Throws FieldUpdateForbiddenException when attempting to change the columns of a field that already has data.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bfc2f8830e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_node_type_insert/7.x", "instruction": "What does the comment_node_type_insert function do in Drupal 7?", "context": "", "response": "function comment_node_type_insert($info): Creates the comment body field for a newly created node type while the comment module is enabled.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bfd2fa3484", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21field_sql_storage%21field_sql_storage.module/function/field_sql_storage_field_attach_rename_bundle/7.x", "instruction": "What does the field_sql_storage_field_attach_rename_bundle function do when renaming a bundle in Drupal 7?", "context": "", "response": "function field_sql_storage_field_attach_rename_bundle($entity_type, $bundle_old, $bundle_new): updates the bundle name in the SQL storage and revision tables for all instances (including deleted or inactive) of the given entity type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bfdbb4eb89", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_link_get_preferred/7.x", "instruction": "How do I get the preferred menu link for a given path in Drupal 7 using the menu_link_get_preferred function?", "context": "", "response": "function menu_link_get_preferred($path = NULL, $selected_menu = NULL): Returns the most specific translated menu link for the given path, or FALSE if not found.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-bfea7ccf96", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21batch.inc/function/_batch_shutdown/7.x", "instruction": "What does the _batch_shutdown function do in the Drupal 7 batch API?", "context": "", "response": "function _batch_shutdown(): stores the current batch data for the next request.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c0046f748d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.pages.inc/function/node_form_build_preview/7.x", "instruction": "What does the node_form_build_preview function do in Drupal 7 when clicking Preview on the node form?", "context": "", "response": "function node_form_build_preview($form, &$form_state): It is the node_form form submission handler that processes the node preview.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c01445081e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.archiver.inc/class/ArchiverTar/7.x", "instruction": "What does the listContents method of the ArchiverTar class do in Drupal 7?", "context": "", "response": "public function listContents(): iterates over the tar file content and returns an array with the names of all files.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-c03076f251", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.module/function/openid_menu_site_status_alter/7.x", "instruction": "What does the openid_menu_site_status_alter function from the OpenID module do in Drupal 7?", "context": "", "response": "function openid_menu_site_status_alter(&$menu_site_status, $path): Allows access to the openid/authenticate route even when the site is in offline mode, changing the menu status to MENU_SITE_ONLINE for anonymous users on that path.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c04845c0b1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/_registry_check_code/7.x", "instruction": "What does the _registry_check_code function do in Drupal 7 and what does it return when looking up a resource in the registry?", "context": "", "response": "function _registry_check_code($type, $name = NULL): Checks if a resource (class, interface, or trait) exists in the registry, using a static cache and querying the registry database table if necessary, returning TRUE if found, FALSE if it does not exist, or NULL when the constants REGISTRY_RESET_LOOKUP_CACHE or REGISTRY_WRITE_LOOKUP_CACHE are passed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c04beac201", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dblog%21dblog.admin.inc/function/dblog_build_filter_query/7.x", "instruction": "What does the dblog_build_filter_query function do in the dblog module of Drupal 7?", "context": "", "response": "function dblog_build_filter_query(): builds a query for the database log administration filters from the session, returning an associative array with keys 'where' and 'args'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c056999d79", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_admin_vocabulary_title_callback/7.x", "instruction": "What does the taxonomy_admin_vocabulary_title_callback function do in Drupal 7 and why is it deprecated?", "context": "", "response": "function taxonomy_admin_vocabulary_title_callback($vocabulary): returns the sanitized vocabulary name with check_plain() and is deprecated in favor of entity_label().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c07eb2c491", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.attach.inc/function/field_attach_form/7.x", "instruction": "What does the field_attach_form function do in Drupal 7 and how does it add form elements for entity fields to the form structure?", "context": "", "response": "function field_attach_form($entity_type, $entity, &$form, &$form_state, $langcode = NULL, $options = array()): Adds form elements for all fields of an entity to a form structure by reference as direct children in the $form parameter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c07fc1d863", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21image.gd.inc/function/image_gd_check_settings/7.x", "instruction": "What does the image_gd_check_settings function do in Drupal 7 and when does it return true?", "context": "", "response": "function image_gd_check_settings(): Checks that the GD2 tool is installed and available, returning true if the imagegd2 function exists and false otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c09a3bc799", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.core.inc/function/install_verify_pdo/7.x", "instruction": "What does the install_verify_pdo function do in Drupal 7?", "context": "", "response": "function install_verify_pdo(): Checks that the PDO extension is loaded and that the PDO::ATTR_DEFAULT_FETCH_MODE constant is defined, verifying that the correct version of PDO is being used.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c0a5505e8a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/filter_form_access_denied/7.x", "instruction": "What does the filter_form_access_denied callback do in Drupal 7 when a user does not have permission to edit a text format?", "context": "", "response": "function filter_form_access_denied($element): Hides the element value by replacing it with an insufficient permission message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c0b50b8dd7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.module/function/shortcut_block_info/7.x", "instruction": "What does the shortcut_block_info function do in the Shortcut module of Drupal 7?", "context": "", "response": "function shortcut_block_info(): Implements hook_block_info() and returns a block definition for shortcuts with cache disabled because each menu item can have a custom access callback.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c0bea8291e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_block_info/7.x", "instruction": "What block does the comment_block_info() function define and what properties does it set in Drupal 7 when implementing hook_block_info()?", "context": "", "response": "function comment_block_info(): Defines a 'recent' block with the label 'Recent comments' and marks its administrative property as TRUE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c0e61f8cfb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.form.inc/function/field_default_form_errors/7.x", "instruction": "How does Drupal 7 transfer field-level validation errors to the corresponding widgets during form validation?", "context": "", "response": "function field_default_form_errors($entity_type, $entity, $field, $instance, $langcode, $items, $form, &$form_state): Retrieves errors stored in the field state and passes them to the widget error callback (hook_field_widget_error) or uses form_error as a fallback, distinguishing between multiple single-value widgets and multiple-value widgets.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c0f57cbedc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.admin.inc/function/menu_item_delete_submit/7.x", "instruction": "What is the purpose of the menu_item_delete_submit function in the menu.admin.inc file of Drupal 7?", "context": "", "response": "function menu_item_delete_submit($form, &$form_state): Handles the deletion button submission in the menu item edit form by redirecting to the deletion confirmation page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c10a58c4c3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_type_get_base/7.x", "instruction": "What does the node_type_get_base function return and what is the returned value used for in Drupal 7?", "context": "", "response": "function node_type_get_base($node): Returns the base of the node type (indicating which module implements it) to execute type-specific hooks, or FALSE if the type is not found.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c1268d6c37", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.module/function/_openid_user_login_form_alter/7.x", "instruction": "What does the Drupal 7 function _openid_user_login_form_alter do when altering the user login form?", "context": "", "response": "function _openid_user_login_form_alter(&$form, &$form_state): Attaches OpenID CSS and JavaScript, disables username and password validation when an OpenID identifier is provided, and adds links to log in or cancel with OpenID.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c12a243624", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.form.inc/function/field_form_set_state/7.x", "instruction": "How does field_form_set_state store field processing information in $form_state in Drupal 7?", "context": "", "response": "function field_form_set_state($parents, $field_name, $langcode, &$form_state, $field_state): stores field data in $form_state using drupal_array_set_nested_value with the given parents, field name, and language.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c14113c74f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_set_time_limit/7.x", "instruction": "What behavior does the drupal_set_time_limit function have in Drupal 7 regarding the PHP maximum execution time?", "context": "", "response": "function drupal_set_time_limit($time_limit): resets the timeout counter from zero, checks if the function is available, and hides errors when setting a new limit, unless it is already unlimited.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c160979e90", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21statistics%21statistics.pages.inc/function/statistics_node_tracker/7.x", "instruction": "What does the statistics_node_tracker() function do and return in Drupal 7 when requesting statistics for a non-existent node?", "context": "", "response": "function statistics_node_tracker(): Displays node access statistics in a sortable, paginated table; returns a render array with the records or MENU_NOT_FOUND if the node does not exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c16e569626", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21unicode.inc/function/unicode_requirements/7.x", "instruction": "What does the unicode_requirements function do in Drupal 7 and what does it return?", "context": "", "response": "function unicode_requirements(): checks the system Unicode library via _unicode_check() and returns a requirements array with title, value, optional description, and severity.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c16e7a3895", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_file_download/7.x", "instruction": "What does the Drupal user_file_download function do that implements hook_file_download()?", "context": "", "response": "function user_file_download($uri): ensures user profile images are always downloadable by returning the appropriate Content-Type header.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c1858f3ffe", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_disable/7.x", "instruction": "What should hook_disable do in Drupal 7 and in which file should it be implemented?", "context": "", "response": "function hook_disable(): performs necessary actions before the module is disabled; it is invoked each time the module is deactivated and must be implemented in the .install file.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c18bb34343", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/_user_cancel/7.x", "instruction": "What does the _user_cancel function do in Drupal 7 and how does it handle different account cancellation methods?", "context": "", "response": "function _user_cancel($edit, $account, $method): Performs the final step of user account cancellation: depending on the method, it sends a block or cancellation notification, disables or deletes the account with user_save/user_delete, logs to watchdog, logs out the affected user, and clears the cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c1a0fa0245", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.admin.inc/function/taxonomy_term_confirm_delete_submit/7.x", "instruction": "What does the submit handler taxonomy_term_confirm_delete_submit do in Drupal 7?", "context": "", "response": "function taxonomy_term_confirm_delete_submit($form, &$form_state): Deletes the term after confirmation, checks the vocabulary hierarchy, displays a success message, logs the action in watchdog, redirects to the taxonomy administration page, and clears the cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c1aa0ac09d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.inc/function/_openid_get_math_library/7.x", "instruction": "What does the _openid_get_math_library function of the OpenID module determine in Drupal 7?", "context": "", "response": "function _openid_get_math_library(): returns the available math library (GMP or BCMath), preferring GMP for its better performance.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c1bd9c68e8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_load/7.x", "instruction": "How to implement hook_field_load to define custom load behavior for my module's field types in Drupal 7?", "context": "", "response": "function hook_field_load($entity_type, $entities, $field, $instances, $langcode, &$items, $age): Defines custom load behavior for a module's field types, allowing field values to be modified by reference during loading.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c1fb5a8b33", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.admin.inc/function/user_admin_roles/7.x", "instruction": "What does the user_admin_roles function do in Drupal 7 and how is its form used to reorder roles or add a new one?", "context": "", "response": "function user_admin_roles($form, $form_state): generates the administration form to reorder existing roles by weight and add a new role.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c20c3020eb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.install/function/comment_update_7005/7.x", "instruction": "What does the comment_update_7005() function do in Drupal 7?", "context": "", "response": "function comment_update_7005(): Creates the comment_body field and adds it to all existing comment bundles.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c2147af262", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.module/function/file_file_download/7.x", "instruction": "How does the file_file_download function implement the hook_file_download hook to control file download access?", "context": "", "response": "function file_file_download($uri, $field_type = 'file'): checks whether the file referenced by $uri can be downloaded and, if permitted, returns its HTTP headers; otherwise, denies access.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c221961e84", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.admin.inc/function/user_admin_role_submit/7.x", "instruction": "What does the function user_admin_role_submit($form, &$form_state) do in Drupal 7?", "context": "", "response": "function user_admin_role_submit($form, &$form_state): Handles the submission of the role administration form, saves the role, and displays a confirmation message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c227d12c9f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_teaser/7.x", "instruction": "What does the poll_teaser($node) function do in Drupal 7 and in what context is it used?", "context": "", "response": "function poll_teaser($node): Creates a simple teaser that displays all poll options, mainly for RSS.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c22badfd0f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.module/function/openid_verify_assertion_return_url/7.x", "instruction": "How does Drupal 7 verify that the openid.return_to parameter from the provider response matches the current URL in the OpenID module?", "context": "", "response": "function openid_verify_assertion_return_url($service, $response): compares the scheme, host, and path of openid.return_to with the current URL using parse_url, then verifies that all query parameters from return_to are present and match in $_GET, returning TRUE if everything is valid or FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c231328801", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.install/function/node_update_7003/7.x", "instruction": "What does the node_update_7003 function do in Drupal 7 and under what condition does it delete the node_counter table?", "context": "", "response": "function node_update_7003(): deletes the node_counter table if the statistics module is uninstalled (schema version equal to SCHEMA_UNINSTALLED).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c233a91881", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.install/function/node_update_7009/7.x", "instruction": "What does the node_update_7009 function do in Drupal 7?", "context": "", "response": "function node_update_7009(): Converts node languages from empty string to LANGUAGE_NONE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c234143a79", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.api.php/function/hook_field_widget_settings_form/7.x", "instruction": "What does hook_field_widget_settings_form do in Drupal 7 and how is it used to add configuration to a field widget?", "context": "", "response": "function hook_field_widget_settings_form($field, $instance): allows the module that defines the widget type to add configuration elements to the settings form of a widget instance, invoked from field_ui_field_edit_form().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c23569aea2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.install/function/node_update_7002/7.x", "instruction": "What does the node_update_7002() function do in Drupal 7?", "context": "", "response": "function node_update_7002(): Updates the node_promote_status index by dropping it and creating a new node_frontpage index with the promote, status, sticky, and created fields.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c239ed050e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_implode_tags/7.x", "instruction": "What does the drupal_implode_tags function do in Drupal 7 and how does it handle special characters like commas and double quotes in tags?", "context": "", "response": "function drupal_implode_tags($tags): Converts an array of tags into a string, encoding tags that contain commas or double quotes by wrapping them in double quotes and escaping internal quotes, then joining them with ', '.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c23f4e2d2c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.admin.inc/function/field_ui_widget_type_form/7.x", "instruction": "What does the field_ui_widget_type_form function do in Drupal 7 and how is the form for selecting the widget type built?", "context": "", "response": "function field_ui_widget_type_form($form, &$form_state, $instance): builds the form used to select the widget type for a field in the field management UI.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c256e34373", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21statistics%21statistics.module/function/statistics_block_save/7.x", "instruction": "What does the statistics_block_save function do in Drupal 7?", "context": "", "response": "function statistics_block_save($delta = '', $edit = array()): saves the statistics block configuration by setting the variables statistics_block_top_day_num, statistics_block_top_all_num, and statistics_block_top_last_num from the $edit array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c257158ff5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_update_index/7.x", "instruction": "What does the comment_update_index function that implements hook_update_index do in Drupal 7?", "context": "", "response": "function comment_update_index(): sets the node_cron_comments_scale variable as the inverse of the maximum number of comments per node, used for ranking by response count.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c27d49abc1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_uri_target/7.x", "instruction": "What does the file_uri_target function do in Drupal 7?", "context": "", "response": "function file_uri_target($uri): Returns the part of a URI after the scheme (for example, \"public://sample/test.txt\" returns \"sample/test.txt\"), or FALSE if it does not exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c287f308e6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21session.inc/function/_drupal_session_open/7.x", "instruction": "What is the purpose of the _drupal_session_open function in Drupal 7 session handling?", "context": "", "response": "function _drupal_session_open(): session handler function assigned by session_set_save_handler() that always returns TRUE and requires no initialization in Drupal.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c28f2c96d5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_form/7.x", "instruction": "What is the purpose of the search_form function in Drupal 7 and what parameters does it receive to build the search form?", "context": "", "response": "function search_form($form, &$form_state, $action = '', $keys = '', $module = NULL, $prompt = NULL): Builds the search form using the Form API, configuring the action, keyword field, and submit button according to the provided parameters.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c291436339", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/date_validate/7.x", "instruction": "What does the date_validate($element) function do in Drupal 7?", "context": "", "response": "function date_validate($element): validates that the date provided in the element is valid using checkdate and displays a form error if it is not.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c2932afcf6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.admin.inc/function/shortcut_link_edit/7.x", "instruction": "What is the exact signature and what does the shortcut_link_edit function do in Drupal 7?", "context": "", "response": "function shortcut_link_edit($form, &$form_state, $shortcut_link): Builds the form for editing a shortcut link.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c2aa19381a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.crud.inc/function/field_create_instance/7.x", "instruction": "What does the field_create_instance function do and what is its signature in Drupal 7?", "context": "", "response": "function field_create_instance($instance): Creates a field instance by attaching it to a bundle, completes default values, and returns the $instance array with the id property assigned.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c2ad4bcdaa", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.install/function/user_update_7018/7.x", "instruction": "What does the user_update_7018 update function do in Drupal 7?", "context": "", "response": "function user_update_7018(): Adds an index on the picture column of the {users} table if it does not exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c2bd773238", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21number%21number.module/function/number_field_formatter_settings_form/7.x", "instruction": "What number formatting settings does the function number_field_formatter_settings_form expose in Drupal 7 and what hook implementation does it cover?", "context": "", "response": "function number_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state): implements hook_field_formatter_settings_form() and returns a form with options for thousands separator, decimal separator, scale, and prefix/suffix depending on the display type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c2d5718b0f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21update.inc/function/update_batch/7.x", "instruction": "What does the function update_batch do in Drupal 7 and how does it determine the order of updates?", "context": "", "response": "function update_batch($start, $redirect = NULL, $url = NULL, $batch = array(), $redirect_callback = 'drupal_goto'): initiates the database batch update process, resolves dependencies to determine execution order, and adds allowed update operations to the batch.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c2e1c7c994", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/image_system_file_system_settings_submit/7.x", "instruction": "What does the function image_system_file_system_settings_submit do in Drupal 7 when the public files path changes?", "context": "", "response": "function image_system_file_system_settings_submit($form, &$form_state): rebuilds the menu if the public file path has changed, to regenerate the router item that depends on that path.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c2ef4c8baa", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.default.inc/function/field_default_validate/7.x", "instruction": "How does field_default_validate in Drupal 7 validate field cardinality and what error code does it report when exceeded?", "context": "", "response": "function field_default_validate($entity_type, $entity, $field, $instance, $langcode, $items, &$errors): Filters empty values and checks that the number of values does not exceed the field cardinality, reporting a 'field_cardinality' error if the limit is exceeded.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c2f0489be3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21translation%21translation.module/function/translation_node_delete/7.x", "instruction": "What does the function translation_node_delete do in Drupal 7 and when does it execute?", "context": "", "response": "function translation_node_delete($node): Implements hook_node_delete() and removes the node from the translation set if its content type supports translations.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c2f8754067", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21field_sql_storage%21field_sql_storage.install/function/field_sql_storage_update_7002/7.x", "instruction": "What does field_sql_storage_update_7002 update when migrating from Drupal 6.x to 7.x?", "context": "", "response": "function field_sql_storage_update_7002(): Fixes the primary keys of field revision tables by removing the existing primary key and recreating it with the fields entity_type, entity_id, revision_id, deleted, delta, and language.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c2fcae9217", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.install/function/poll_update_7002/7.x", "instruction": "What does the function poll_update_7002 do in Drupal 7?", "context": "", "response": "function poll_update_7002(): adds the timestamp field to the poll_vote table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c3024a19f6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.admin.inc/function/theme_user_permission_description/7.x", "instruction": "What does the function theme_user_permission_description do in Drupal 7 and how does it generate HTML for a user permission description?", "context": "", "response": "function theme_user_permission_description($variables): Returns the HTML for an individual permission description, showing its text and optionally a warning, unless instructed to hide it.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c33e650c5c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_get_token/7.x", "instruction": "How is a validation token generated based on an additional value, the user session, and the private key in Drupal 7?", "context": "", "response": "function drupal_get_token($value = ''): Generates a URL-safe 43-character token using the provided value, current user session ID, private key, and Drupal salt hash.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c3471bc514", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_pass_rehash/7.x", "instruction": "What does the user_pass_rehash function do in Drupal 7 and what parameters does it use to generate the hash?", "context": "", "response": "function user_pass_rehash($password, $timestamp, $login, $uid, $mail = ''): generates a unique and secure hash for temporary user URLs, normally used to reset the password via email.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c347bc86f5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/db_delete/7.x", "instruction": "What does the db_delete() function do in Drupal 7 and what object does it return?", "context": "", "response": "function db_delete($table, array $options = array()): Returns a new DeleteQuery object for the active database connection.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c36e9c73d7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/function/block_load/7.x", "instruction": "How does the block_load function load a block from the database in Drupal 7?", "context": "", "response": "function block_load($module, $delta): Returns the first block matching the given module and delta, or an empty block object if it does not exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c382742e31", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21cache.inc/function/cache_clear_all/7.x", "instruction": "How is the cache_clear_all function used to clear specific entries or the entire cache in Drupal 7?", "context": "", "response": "function cache_clear_all($cid = NULL, $bin = NULL, $wildcard = FALSE): Removes cache entries specified by $cid and $bin; if both are NULL, clears the cache_page and cache_block bins, and with $wildcard TRUE also removes IDs starting with $cid.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c388b375b4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.install/function/comment_enable/7.x", "instruction": "What does the comment_enable function implemented in comment.install do in Drupal 7?", "context": "", "response": "function comment_enable(): Implements hook_enable() and fills missing records in node_comment_statistics with data from nodes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c38ca69123", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/_filter_url/7.x", "instruction": "What does the _filter_url($text, $filter) function from the Filter module do in Drupal 7?", "context": "", "response": "function _filter_url($text, $filter): Converts text into hyperlinks by automatically detecting URLs, email addresses, and www addresses.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c39d740c62", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/template_preprocess_book_export_html/7.x", "instruction": "What does the template_preprocess_book_export_html function do in Drupal 7 and what variables does it prepare for the book-export-html.tpl.php template?", "context": "", "response": "function template_preprocess_book_export_html(&$variables): processes variables for book-export-html.tpl.php, setting the sanitized title, base URL, language, whether it is RTL, HTML head, and text direction.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c3a1cd2999", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.admin.inc/function/field_ui_field_settings_form_submit/7.x", "instruction": "What does the function field_ui_field_settings_form_submit do in Drupal 7?", "context": "", "response": "function field_ui_field_settings_form_submit($form, &$form_state): processes the submission of a field settings form, merging received values with the existing field, updating it, and displaying a success or error message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c3a5d4b3cd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.admin.inc/function/image_style_delete_form_submit/7.x", "instruction": "What does the function image_style_delete_form_submit do in Drupal 7?", "context": "", "response": "function image_style_delete_form_submit($form, &$form_state): deletes an image style, shows a confirmation message, and redirects to the style list.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c3b1239b46", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_get_schema_unprocessed/7.x", "instruction": "How do I get the original schema of a module in Drupal 7 without hook_schema_alter() alterations or automatic default values being applied?", "context": "", "response": "function drupal_get_schema_unprocessed($module, $table = NULL): Returns the raw schema specification of a module by loading its .install file and executing hook_schema() directly, without invoking hook_schema_alter() or setting default values.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c3b9238cc1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/_node_access_rebuild_batch_operation/7.x", "instruction": "What does _node_access_rebuild_batch_operation do in Drupal 7 and how does it process nodes in batches during access rebuild?", "context": "", "response": "function _node_access_rebuild_batch_operation(&$context): is the batch operation that rebuilds node access permissions by processing 20 nodes per step and using sandbox to track progress.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c3bdaa16eb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dashboard%21dashboard.module/function/dashboard_theme/7.x", "instruction": "What theme hooks does the dashboard_theme function define in the Dashboard module of Drupal 7?", "context": "", "response": "function dashboard_theme(): Implements hook_theme() and returns an array with definitions for 'dashboard', 'dashboard_admin', 'dashboard_region', 'dashboard_disabled_blocks', 'dashboard_disabled_block', and 'dashboard_admin_display_form', each with their corresponding render elements or variables.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c3eb986a16", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_vocabulary_load/7.x", "instruction": "How do I get the vocabulary object by its ID using the taxonomy_vocabulary_load function in Drupal 7?", "context": "", "response": "function taxonomy_vocabulary_load($vid): Returns the vocabulary object with all its metadata for the given $vid, or FALSE if it does not exist, and stores the result in static cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c3fdc28584", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_action_delete_orphans_post/7.x", "instruction": "What operations does system_action_delete_orphans_post perform after deleting orphan actions in Drupal 7?", "context": "", "response": "function system_action_delete_orphans_post($orphaned): Displays a confirmation message for each deleted orphan action indicating its callback.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c4001d0764", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/_drupal_error_handler/7.x", "instruction": "What does the _drupal_error_handler function do in Drupal 7 and what are its parameters?", "context": "", "response": "function _drupal_error_handler($error_level, $message, $filename, $line): provides a custom PHP error handler that includes errors.inc and delegates processing to _drupal_error_handler_real.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c40ab57475", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/filter_xss/7.x", "instruction": "What does the filter_xss function do in Drupal 7 to prevent XSS vulnerabilities?", "context": "", "response": "function filter_xss($string, $allowed_tags = array( 'a', 'em', 'strong', 'cite', 'blockquote', 'code', 'ul', 'ol', 'li', 'dl', 'dt', 'dd', )): Filters HTML by removing dangerous characters and validating entities, tags, and protocols to prevent cross-site scripting.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c433f9c242", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21trigger%21trigger.module/function/trigger_forms/7.x", "instruction": "What does the trigger_forms() function do in the trigger module of Drupal 7?", "context": "", "response": "function trigger_forms(): Implements hook_forms(), reusing the same assignment form definition for each available hook.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c44e11631b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_tree_get_path/7.x", "instruction": "What does the menu_tree_get_path function do in Drupal 7 and what value does it return?", "context": "", "response": "function menu_tree_get_path($menu_name): Returns the path of the specified menu tree to determine the active trail, or NULL if not previously set with menu_tree_set_path().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c47f9140b8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21ajax.inc/function/ajax_command_restripe/7.x", "instruction": "How is an Ajax 'restripe' command created in Drupal 7 so the client reapplies alternating row styles to a table?", "context": "", "response": "function ajax_command_restripe($selector): Creates an Ajax 'restripe' command that tells the client to reapply alternating row styles to a table, typically after it has been modified via a replace or append command, and returns an array ready for use with ajax_render().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c481d50f40", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.field.inc/function/file_field_load/7.x", "instruction": "What does the file_field_load function do in Drupal 7 when implementing hook_field_load?", "context": "", "response": "function file_field_load($entity_type, $entities, $field, $instances, $langcode, &$items, $age): Loads files associated with a field and merges them with the items, removing those whose file does not exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c49181935e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.attach.inc/class/FieldValidationException/7.x", "instruction": "What property does FieldValidationException expose in Drupal 7 and what structure does the stored data have?", "context": "", "response": "var $errors;: Contains the field validation errors array, indexed by field name and delta, where each entry has the keys 'error' (machine-readable error code) and 'message' (human-readable message).", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-c4ae30f3ae", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_update_N/7.x", "instruction": "How to implement the hook_update_N function in Drupal 7 to perform multipass database updates?", "context": "", "response": "function hook_update_N(&$sandbox): Performs a single database update, using the $sandbox parameter for multipass operations that avoid PHP timeouts.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c4bd43e8f1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_enable/7.x", "instruction": "What does the hook_enable hook do in Drupal 7 and when is it invoked?", "context": "", "response": "function hook_enable(): Runs after a module is enabled to perform necessary actions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c4d09ebb49", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21ajax.inc/function/ajax_command_add_css/7.x", "instruction": "What does the ajax_command_add_css function do in Drupal 7 and what value does it return?", "context": "", "response": "function ajax_command_add_css($styles): Creates an Ajax 'add_css' command that adds CSS styles via AJAX in a browser-compatible way and returns an array suitable for ajax_render().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c4d3dd2f24", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.module/function/shortcut_admin_paths/7.x", "instruction": "What does the shortcut_admin_paths function do in Drupal 7 and which paths does it mark as administrative?", "context": "", "response": "function shortcut_admin_paths(): Implements hook_admin_paths() and marks the path 'user/*/shortcuts' as an administrative path (TRUE).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c4fb8b2cce", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/constant/DRUPAL_BOOTSTRAP_PAGE_CACHE/7.x", "instruction": "What does the constant DRUPAL_BOOTSTRAP_PAGE_CACHE mean in the Drupal 7 bootstrap process and what phase is it in?", "context": "", "response": "define('DRUPAL_BOOTSTRAP_PAGE_CACHE', 1);: Represents the second phase of Drupal bootstrap, whose goal is to attempt to serve a cached page.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-c4fde0bd99", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_js_defaults/7.x", "instruction": "What does the drupal_js_defaults($data = NULL) function do in Drupal 7?", "context": "", "response": "function drupal_js_defaults($data = NULL): Builds an array with default values for JavaScript elements.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c51b37e347", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/constant/MENU_CONTEXT_PAGE/7.x", "instruction": "What value does the constant MENU_CONTEXT_PAGE have in Drupal 7?", "context": "", "response": "define('MENU_CONTEXT_PAGE', 0x1);: Defines the constant MENU_CONTEXT_PAGE with the value 0x1, indicating that the menu should be displayed in page context.", "tags": ["api-reference", "constant"], "created_at": "2026-09-29"}
{"id": "doc-drupal7-c536d3fb23", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_ranking/7.x", "instruction": "How to implement hook_ranking() in Drupal 7 to add custom scoring mechanisms in node search results?", "context": "", "response": "function hook_ranking(): Provides additional scoring methods for node search results, returning an associative array with ranking mechanisms that calculate a decimal value between 0 and 1.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c54511b2ca", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21filetransfer%21filetransfer.inc/class/SkipDotsRecursiveDirectoryIterator/7.x", "instruction": "What does the skipdots method of the SkipDotsRecursiveDirectoryIterator class do in Drupal 7?", "context": "", "response": "protected function skipdots(): Manually advances past the '.' and '..' directories during recursive iteration.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-c556fcf330", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_copy/7.x", "instruction": "What does the file_copy function do to copy a file and add its record to the database in Drupal 7?", "context": "", "response": "function file_copy(stdClass $source, $destination = NULL, $replace = FILE_EXISTS_RENAME): Copies a file to a new location and adds a record of the copied file to the database.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c55c943ac8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.field.inc/function/_file_generic_settings_file_directory_validate/7.x", "instruction": "What does the function _file_generic_settings_file_directory_validate do in Drupal 7 and what is its exact signature?", "context": "", "response": "function _file_generic_settings_file_directory_validate($element, &$form_state): validates the file destination field by trimming slashes from the beginning and end of the entered value.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c584c309ed", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_cancel/7.x", "instruction": "What does the function poll_cancel do in Drupal 7?", "context": "", "response": "function poll_cancel($form, &$form_state): cancels the current user's vote in a poll by deleting the vote record from the database, decrementing the selected option count, clearing the session, and displaying a confirmation message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c594a54bbc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.api.php/function/hook_comment_load/7.x", "instruction": "What does hook_comment_load do in Drupal 7?", "context": "", "response": "function hook_comment_load($comments): Invoked when comments are loaded from the database, receiving an array of comment objects indexed by cid so modules can add custom data.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c5b44f1b1a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/profiles%21standard%21standard.profile/function/standard_form_install_configure_form_alter/7.x", "instruction": "What does the function standard_form_install_configure_form_alter do in Drupal 7 and how does it alter the installation configuration form?", "context": "", "response": "function standard_form_install_configure_form_alter(&$form, $form_state): pre-populates the site name with the server name.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c5ba879b8a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.pages.inc/function/user_pass_validate/7.x", "instruction": "What does the function user_pass_validate do in the user module of Drupal 7?", "context": "", "response": "function user_pass_validate($form, &$form_state): Validates the user password reset form, applying per-IP and per-user attempt limits via the flood system and setting form errors when exceeded.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c5c784f722", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.info.inc/function/field_info_field_map/7.x", "instruction": "What does the function field_info_field_map() return in Drupal 7 and what is it used for?", "context": "", "response": "function field_info_field_map(): Returns an array indexed by field name containing the field type and bundles (grouped by entity type) where the field is active and not deleted.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c5d3ccf41d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21unicode.inc/function/drupal_truncate_bytes/7.x", "instruction": "How does Drupal safely truncate a UTF-8 string to a given number of bytes?", "context": "", "response": "function drupal_truncate_bytes($string, $len): Truncates the string to $len bytes, adjusting backwards if the cut falls within a multibyte UTF-8 character.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c5d6247a0b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21update.inc/constant/REQUIRED_D6_SCHEMA_VERSION/7.x", "instruction": "What value must REQUIRED_D6_SCHEMA_VERSION have and what does it check during the Drupal 6 to Drupal 7 update?", "context": "", "response": "define('REQUIRED_D6_SCHEMA_VERSION', '6055');: Defines the minimum Drupal 6 schema version required for the update to Drupal 7, checking the system.module schema in the system table.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-c6345fbd92", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21password.inc/function/_password_generate_salt/7.x", "instruction": "How does Drupal 7 generate a base64-encoded random salt for password hashes via the _password_generate_salt function?", "context": "", "response": "function _password_generate_salt($count_log2): Generates a 12-character base64 string that includes the iteration count and a random salt for password hashing.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c644eab58a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21statistics%21statistics.tokens.inc/function/statistics_token_info/7.x", "instruction": "What node tokens does the statistics_token_info function define in Drupal 7 and what are they for?", "context": "", "response": "function statistics_token_info(): implements hook_token_info() and registers the node tokens total-count, day-count, and last-view with their descriptions and data type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c65187f702", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_entity_info/7.x", "instruction": "What information does the node_entity_info() function return when implementing hook_entity_info() for the node entity in Drupal 7?", "context": "", "response": "function node_entity_info(): Returns an array that defines the node entity, its label, controller, base and revision tables, URI callback, entity keys, view modes, and bundles.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c65bbb3236", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/filter_theme/7.x", "instruction": "What does the filter_theme function do when implementing hook_theme in the Filter module of Drupal 7?", "context": "", "response": "function filter_theme(): defines the Filter module's theme templates by returning an array with the configuration for each hook_theme.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c66fa7dd50", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/misc%21typo3%21phar-stream-wrapper%21src%21Phar%21Container.php/class/Container/7.x", "instruction": "What does the getAlias method of the Container class do in the Phar stream wrapper of Drupal 7?", "context": "", "response": "public function getAlias(): returns the manifest alias, or if it does not exist, the mapped alias of the stub.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-c6741876a4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_get_module_admin_tasks/7.x", "instruction": "What does the system_get_module_admin_tasks function do in Drupal 7?", "context": "", "response": "function system_get_module_admin_tasks($module, $info): generates an array of administrative task links offered by the specified module.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c67ace51d5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_menu_link_delete/7.x", "instruction": "What is the purpose of the hook_menu_link_delete hook in Drupal 7 and what parameter does it receive?", "context": "", "response": "function hook_menu_link_delete($link): notifies modules that a menu link has been deleted and provides the associative array of the link.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c67d729b2f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/function/_block_get_cache_id/7.x", "instruction": "What does the _block_get_cache_id($block) function do in Drupal?", "context": "", "response": "function _block_get_cache_id($block): Builds the cache ID for a given block.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c69fd0e833", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_ip_blocking_form/7.x", "instruction": "How does the system_ip_blocking_form function define the IP blocking form in Drupal 7?", "context": "", "response": "function system_ip_blocking_form($form, $form_state, $default_ip): defines the IP blocking form with a text field for the IP and submit button, adding validation and submit handlers.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c6c58d0eab", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_system_info_alter/7.x", "instruction": "What does the user_system_info_alter function do in Drupal 7?", "context": "", "response": "function user_system_info_alter(&$info, $file, $type): Makes the Profile module visible only if profile_* tables exist; otherwise keeps it hidden.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c6cb1108b9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_filetransfer_info_alter/7.x", "instruction": "What does hook_filetransfer_info_alter do in Drupal 7?", "context": "", "response": "function hook_filetransfer_info_alter(&$filetransfer_info): alters the FileTransfer class registry, allowing alteration of its information such as removing options or changing its weight.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c6cffa3756", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.pages.inc/function/user_cancel_confirm_form_submit/7.x", "instruction": "What does user_cancel_confirm_form_submit do in Drupal 7?", "context": "", "response": "function user_cancel_confirm_form_submit($form, &$form_state): Is the submit handler of the user account cancellation confirmation form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c6d270588c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_is_https/7.x", "instruction": "What does drupal_is_https do in Drupal 7?", "context": "", "response": "function drupal_is_https(): Checks if the current request is being served over HTTPS and returns TRUE if so, FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c6d8d0bf40", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_setcookie/7.x", "instruction": "What does drupal_setcookie do in Drupal?", "context": "", "response": "function drupal_setcookie($name, $value, $options): Is a wrapper of PHP's setcookie() function that allows altering the cookie value and options.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c6e9c80ac3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_menu/7.x", "instruction": "What does the node_menu() function of the node module do in Drupal 7?", "context": "", "response": "function node_menu(): Implements hook_menu() defining menu routes for content administration and display.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c6ef5c56a3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.install/function/filter_update_7008/7.x", "instruction": "What does filter_update_7008 do in Drupal?", "context": "", "response": "function filter_update_7008(): Grants permission to use all text formats to user roles that can administer filters.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c6f67cbb28", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_actions_manage_form/7.x", "instruction": "What does the function system_actions_manage_form do in Drupal 7 and how does it define the actions administration form?", "context": "", "response": "function system_actions_manage_form($form, &$form_state, $options = array()): Defines the actions administration page form with an advanced actions selector and a create button.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c713989f91", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_rdf_mapping/7.x", "instruction": "What does the function taxonomy_rdf_mapping return and implement in Drupal 7?", "context": "", "response": "function taxonomy_rdf_mapping(): Returns the RDF mapping for vocabularies and terms, implementing hook_rdf_mapping().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c71845892f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_authorized_init/7.x", "instruction": "How is the function system_authorized_init used to prepare a callback to be executed via authorize.php with elevated privileges in Drupal 7?", "context": "", "response": "function system_authorized_init($callback, $file, $arguments = array(), $page_title = NULL): Sets up the necessary session variables so that authorize.php executes the specified callback with elevated privileges.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c726c3f930", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.parser.inc/function/aggregator_aggregator_parse_info/7.x", "instruction": "What does the function aggregator_aggregator_parse_info() do in Drupal?", "context": "", "response": "function aggregator_aggregator_parse_info(): Implements hook_aggregator_parse_info() and parses RSS, Atom, and RDF feeds.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c7296bc495", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.info.inc/function/field_info_field/7.x", "instruction": "How to get field data by name using the function field_info_field in Drupal 7?", "context": "", "response": "function field_info_field($field_name): Returns the requested field array with an extra 'bundles' element listing the bundles it belongs to, or NULL if the field is not found.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c734918038", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.tokens.inc/function/node_token_info/7.x", "instruction": "What token information does the function node_token_info return in Drupal 7?", "context": "", "response": "function node_token_info(): Implements hook_token_info and returns an array with node types and tokens, such as nid, vid, title, body, URL, creation dates, and author.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c73ac64df4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_set_authmaps/7.x", "instruction": "What does the function user_set_authmaps do in the provided documentation?", "context": "", "response": "function user_set_authmaps($account, $authmaps): Saves external authentication module mappings that authenticated the user, mapping external usernames to user IDs in the users table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c74c7b1c46", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_page_build/7.x", "instruction": "How to add renderable elements to a page in Drupal 7 before rendering using hook_page_build and in what theme region should they go?", "context": "", "response": "function hook_page_build(&$page): Allows adding elements at the page level before rendering, placing them under the active theme's region keys.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c74dbc4954", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_init/7.x", "instruction": "When does hook_init() execute in Drupal 7 and what tasks does it perform during an uncached page request?", "context": "", "response": "function hook_init(): performs initial setup tasks for uncached page requests, running at the start of the request with theme and modules already loaded.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c751438f47", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.info.inc/function/_field_info_field_cache/7.x", "instruction": "What does the function _field_info_field_cache() do in Drupal 7?", "context": "", "response": "function _field_info_field_cache(): returns a static instance of the FieldInfo class for the current request, creating the instance if it does not yet exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c76039b32c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/arg/7.x", "instruction": "What does the arg function do in Drupal and how is it used to obtain components of the current path?", "context": "", "response": "function arg($index = NULL, $path = NULL): Returns a component of Drupal's current path. For example, arg(0) returns \"admin\", arg(1) returns \"structure\", and arg(2) returns \"types\". It is recommended to avoid using this function because the resulting code is difficult to read.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c765ff1de4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21overlay%21overlay.module/function/overlay_request_page_refresh/7.x", "instruction": "What does the overlay_request_page_refresh method of the OverlayRequestPageRefresh class do in Drupal?", "context": "", "response": "function overlay_request_page_refresh(): Configures the overlay to fully reload the parent window upon closing via the session, activating page refresh.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c7668fb859", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_rebuild_theme_data/7.x", "instruction": "What does the function system_rebuild_theme_data() do in Drupal 7?", "context": "", "response": "function system_rebuild_theme_data(): Rebuilds, saves, and returns data for all available themes, returning an array with the themes and their data.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c76df5725b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21authorize.inc/function/authorize_filetransfer_form_submit/7.x", "instruction": "What does the function authorize_filetransfer_form_submit do when processing the file transfer form submission in Drupal 7?", "context": "", "response": "function authorize_filetransfer_form_submit($form, &$form_state): Handles the file transfer form submission, saving connection settings, rebuilding the form, or changing the connection type depending on the element that triggered the submission.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c76e24235d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.pages.inc/function/template_preprocess_aggregator_feed_source/7.x", "instruction": "What does the function template_preprocess_aggregator_feed_source do in Drupal?", "context": "", "response": "function template_preprocess_aggregator_feed_source(&$variables): processes feed variables to prepare the template by adding icon, image, description, and URL", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c785d011b9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7074/7.x", "instruction": "What does the update function system_update_7074 do in Drupal 7?", "context": "", "response": "function system_update_7074(): The function has been removed and does not execute; it previously converted query strings from the menu_links table to arrays, but was removed due to incompatibilities with PostgreSQL.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c788be07c8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21select.inc/class/SelectQueryExtender/7.x", "instruction": "What does the constructor of the SelectQueryExtender class do in Drupal 7?", "context": "", "response": "public function __construct(SelectQueryInterface $query, DatabaseConnection $connection): initializes the extender by assigning the query to decorate, the database connection, and generates a unique identifier for the query object.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-c78a36dcab", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_attach_delete/7.x", "instruction": "What does the hook hook_field_attach_delete do in Drupal 7?", "context": "", "response": "function hook_field_attach_delete($entity_type, $entity): Is invoked after the field module has deleted the data of a field attached to an entity, allowing modules to react to that deletion.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c79bb51717", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.inc/function/_openid_math_mul/7.x", "instruction": "What does the _openid_math_mul function of the OpenID module do in Drupal 7?", "context": "", "response": "function _openid_math_mul($x, $y): calls the multiplication function of the available math library (gmp or bcmath) for OpenID.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c7aa1ab318", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/image_help/7.x", "instruction": "What does the image_help function do in Drupal 7 and for what admin routes does it provide help?", "context": "", "response": "function image_help($path, $arg): implements hook_help() and returns help text about the Image module, image styles and effects for the routes admin/help#image, admin/config/media/image-styles and their subroutes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c7b820aaa6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/_book_outline_access/7.x", "instruction": "What does the _book_outline_access function do in Drupal 7 and what parameter does it receive?", "context": "", "response": "function _book_outline_access($node): determines whether the outline tab is accessible by checking that the user has permission to administer book outline and view access to the node.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c7c3b28d07", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21pgsql%21database.inc/class/DatabaseConnection_pgsql/7.x", "instruction": "What does the driver method of the DatabaseConnection_pgsql class return in Drupal 7?", "context": "", "response": "public function driver(): Returns the string 'pgsql' indicating the database driver type used by this connection.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-c7ce0b0b0c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.fetch.inc/function/update_fetch_data_finished/7.x", "instruction": "What does the update_fetch_data_finished function do in Drupal 7 when the update data fetch batch process finishes?", "context": "", "response": "function update_fetch_data_finished($success, $results): Displays messages indicating how many projects were updated successfully or failed, and an error message if the batch failed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c7d7465824", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_select_nodes/7.x", "instruction": "How to get the node IDs associated with a taxonomy term in Drupal 7 using the taxonomy_select_nodes function?", "context": "", "response": "function taxonomy_select_nodes($tid, $pager = TRUE, $limit = FALSE, $order = array( 't.sticky' => 'DESC', 't.created' => 'DESC', )): Returns an array of nids of nodes linked to the specified term across all field instances.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c7f25287bb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_node_insert/7.x", "instruction": "What does the book_node_insert method do in Drupal?", "context": "", "response": "function book_node_insert($node): Inserts a book node in Drupal by implementing hook_node_insert() and managing the bid logic for new books.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c81e4a616f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21text%21text.module/function/text_filter_format_disable/7.x", "instruction": "What effect does the text_filter_format_disable function have when disabling a text format in Drupal 7?", "context": "", "response": "function text_filter_format_disable($format): Clears the field cache when a text format is disabled.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c82c801fb7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme/7.x", "instruction": "What is the theme() function used for in Drupal 7 and how does it determine which function or template to use to generate the output?", "context": "", "response": "function theme($hook, $variables = array()): Generates themed output by examining the request and routing it to the appropriate function or template via theme registry checking.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c82c8c214d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.module/function/menu_node_update/7.x", "instruction": "What does the menu_node_update function do in Drupal 7 and what hook does it implement?", "context": "", "response": "function menu_node_update($node): Implements hook_node_update() and delegates node saving to the menu by calling menu_node_save($node).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c82dc87e51", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21path.inc/function/drupal_path_alias_whitelist_rebuild/7.x", "instruction": "What does the drupal_path_alias_whitelist_rebuild function do and what optional parameter does it accept?", "context": "", "response": "function drupal_path_alias_whitelist_rebuild($source = NULL): Rebuilds the path alias whitelist and optionally filters it by a specific system path, returning an array of allowed aliases.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c82f223ef9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_attach_rename_bundle/7.x", "instruction": "What does the hook_field_attach_rename_bundle hook do in Drupal 7 and when is it invoked?", "context": "", "response": "function hook_field_attach_rename_bundle($entity_type, $bundle_old, $bundle_new): Invoked after the field module has renamed a bundle, allowing other modules to act on the change (e.g., updating references stored as field_extra_weights).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c835e6c809", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21path%21path.admin.inc/function/path_admin_form_delete_submit/7.x", "instruction": "What does the path_admin_form_delete_submit function do in Drupal 7 when processing the path administration form submission?", "context": "", "response": "function path_admin_form_delete_submit($form, &$form_state): Handles the path deletion form submission and redirects to the deletion confirmation page passing the PID and destination.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c855651dc9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/function/country_get_list/7.x", "instruction": "What does the country_get_list() function return in Drupal 7?", "context": "", "response": "function country_get_list(): returns an array with all predefined and custom country code => country name pairs.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c85e62532f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21tracker%21tracker.install/function/tracker_schema/7.x", "instruction": "What does the tracker_schema() function do when implementing hook_schema() in the tracker module in Drupal 7?", "context": "", "response": "function tracker_schema(): defines the database schema for the tracker_node and tracker_user tables used by the tracker module.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c864096034", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_field_widget_error/7.x", "instruction": "How does the Taxonomy module implement hook_field_widget_error in Drupal 7?", "context": "", "response": "function taxonomy_field_widget_error($element, $error, $form, &$form_state): sets a form error on the widget element using the message contained in $error['message'].", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c89328780b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.crud.inc/function/field_read_fields/7.x", "instruction": "How to read field definitions that match specific conditions in Drupal 7?", "context": "", "response": "function field_read_fields($params = array(), $include_additional = array()): returns an array of fields that meet the criteria of $params, allowing inclusion of inactive or deleted fields via $include_additional.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c899d37e34", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/constant/LANGUAGE_NONE/7.x", "instruction": "What does the LANGUAGE_NONE constant mean in Drupal 7?", "context": "", "response": "define('LANGUAGE_NONE', 'und');: It is the language code used when no language is explicitly assigned, defined by ISO639-2 as 'und'.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-c8b1969710", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/theme_fieldset/7.x", "instruction": "What does the theme_fieldset function do in Drupal 7 and how does it use the $variables parameter?", "context": "", "response": "function theme_fieldset($variables): Returns the HTML of a form fieldset element, including its legend, description, and child content.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c8b5393c11", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.api.php/function/hook_user_role_presave/7.x", "instruction": "What does the hook_user_role_presave hook do and when is it invoked in Drupal 7?", "context": "", "response": "function hook_user_role_presave($role): Allows modules to intervene on the user role object before it is saved to the database during an insert or update.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c8bf93b1d1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.inc/function/_openid_response/7.x", "instruction": "What does the _openid_response function do in Drupal 7?", "context": "", "response": "function _openid_response($str = NULL): Completes OpenID authentication by obtaining and merging parameters from the query string and POST request body, returning an array with that data.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c8c17a1b1d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21mysql%21query.inc/class/UpdateQuery_mysql/7.x", "instruction": "What does the __toString method of the UpdateQuery_mysql class do in Drupal 7?", "context": "", "response": "public function __toString(): Converts the UPDATE query to its SQL representation by escaping field names when necessary and delegates to the parent __toString() method.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-c8ce568da3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21trigger%21trigger.module/function/_trigger_normalize_node_context/7.x", "instruction": "What does the _trigger_normalize_node_context function do in the trigger module of Drupal 7?", "context": "", "response": "function _trigger_normalize_node_context($type, $node): Loads the object that expects an action (for example, the author user) when executed in a node context.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c8d65d6cb6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21path%21path.admin.inc/function/path_admin_overview/7.x", "instruction": "What does the path_admin_overview() function do in Drupal 7?", "context": "", "response": "function path_admin_overview(): Returns a list of all defined URL aliases and, if a filter key is passed, searches for those matching aliases.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c8d7f792e0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.compare.inc/function/update_get_project_name/7.x", "instruction": "What does the update_get_project_name function do in Drupal 7?", "context": "", "response": "function update_get_project_name($file): Returns the canonical short name of the project to which the file object belongs.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c8ebed81d1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/_template_preprocess_default_variables/7.x", "instruction": "What does the _template_preprocess_default_variables function return in Drupal 7 and what variables does it include by default?", "context": "", "response": "function _template_preprocess_default_variables(): Returns an array of hook-independent default variables for template_preprocess, with attributes, title prefixes/suffixes, the global user, and flags such as db_is_active, is_admin, logged_in, and is_front.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c909d95472", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.pages.inc/function/openid_user_add/7.x", "instruction": "What is the openid_user_add function used for in the OpenID module of Drupal 7 and what form does it build?", "context": "", "response": "function openid_user_add(): Builds a form with a text field for the OpenID identifier and a submit button to add an OpenID identity.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c90e937253", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.admin.inc/function/comment_admin_overview_submit/7.x", "instruction": "What does the comment_admin_overview_submit function do in Drupal 7 when processing the comment administration form?", "context": "", "response": "function comment_admin_overview_submit($form, &$form_state): Processes submissions of the comment administration form, executing the chosen operation (publish, unpublish, or delete) on the selected comments.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c92106b2c3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.admin.inc/function/field_ui_existing_field_options/7.x", "instruction": "What does the field_ui_existing_field_options function return and what is it used for in Drupal 7?", "context": "", "response": "function field_ui_existing_field_options($entity_type, $bundle): Returns an array of existing fields that can be added to a bundle, excluding those that are locked, already present, incompatible, or lack a UI.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c9332b946b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/filter_get_filters/7.x", "instruction": "How to get the list of all filters provided by modules in Drupal 7?", "context": "", "response": "function filter_get_filters(): returns an array with the definitions of all filters registered by modules, including their descriptions and weights, after allowing alterations and sorting them.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c95f973ba5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21field_sql_storage%21field_sql_storage.module/function/_field_sql_storage_columnname/7.x", "instruction": "What does the _field_sql_storage_columnname function do in Drupal 7 and how does it construct the column name for the field data table?", "context": "", "response": "function _field_sql_storage_columnname($name, $column): concatenates the field name and column name with an underscore to generate a unique column name in the field data table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c986d89ac9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_clear_css_cache/7.x", "instruction": "What does the drupal_clear_css_cache function do in Drupal 7?", "context": "", "response": "function drupal_clear_css_cache(): Removes old cached CSS files.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c98bb41784", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/image_style_options/7.x", "instruction": "What does the image_style_options($include_empty = TRUE, $output = CHECK_PLAIN) function do and what is its typical use in a Drupal form?", "context": "", "response": "function image_style_options($include_empty = TRUE, $output = CHECK_PLAIN): Returns an array of image styles with the machine name as key and the label as value, optionally adding a
option when $include_empty is TRUE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c995853077", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/db_drop_unique_key/7.x", "instruction": "What does the db_drop_unique_key function do in Drupal?", "context": "", "response": "function db_drop_unique_key($table, $name): drops a unique key from the specified database table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c9b9e61090", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21statistics%21statistics.module/function/_statistics_link/7.x", "instruction": "What does the _statistics_link function in Drupal 7 do that generates a link to a path truncating the displayed text to a given width?", "context": "", "response": "function _statistics_link($path, $width = 35): Generates a link to the specified path, truncating the visible text to the indicated width.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c9d8d5f144", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/_book_parent_select/7.x", "instruction": "What does the _book_parent_select function do when constructing the parent selection element for the node form or schema tab?", "context": "", "response": "function _book_parent_select($book_link): Constructs the parent selection form element for the node form or schema tab and returns an array that can replace an existing element.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-c9e423616a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/password_confirm_validate/7.x", "instruction": "What does the password_confirm_validate function do in Drupal 7 and how does it validate password confirmation fields?", "context": "", "response": "function password_confirm_validate($element, &$element_state): Validates a password_confirm element by comparing the two passwords, generates an error if they don't match or if they are empty when required, and converts the field to a single string.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ca0081b0b6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/theme_exposed_filters/7.x", "instruction": "What does the theme_exposed_filters function return and how does it process the exposed filters form in Drupal 7?", "context": "", "response": "function theme_exposed_filters($variables): Returns HTML for an exposed filters form rendering current filters as a list of items and the remaining form children, all wrapped in a div with class 'exposed-filters'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ca0c5d0cb7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21password.inc/function/user_needs_new_hash/7.x", "instruction": "How to check if a user's hashed password should be replaced by a new hash?", "context": "", "response": "function user_needs_new_hash($account): Checks whether the user's password hash needs to be updated due to changes in the number of iterations or algorithm version.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ca16c62a03", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.info.inc/function/_field_info_collate_fields/7.x", "instruction": "What does the _field_info_collate_fields function do in Drupal 7?", "context": "", "response": "function _field_info_collate_fields($reset = FALSE): Collects and returns complete information about existing fields, their IDs, instances, and additional bundle fields, used internally but marked as obsolete due to performance impact.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ca1a7e8cc3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21overlay%21overlay.module/function/overlay_get_rendered_content/7.x", "instruction": "What does the overlay_get_rendered_content function do in Drupal 7?", "context": "", "response": "function overlay_get_rendered_content(): Returns any rendered content stored earlier in the page request, such as an array indexed by identifier; if no content, returns an empty array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ca1c68cb4d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_block_configure/7.x", "instruction": "What does the user_block_configure function do in Drupal 7 and what configuration options does it offer for user blocks?", "context": "", "response": "function user_block_configure($delta = ''): Implements hook_block_configure() and returns forms to configure the 'new' and 'online' blocks, defining how many users to display and the active time.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ca2d3c25ac", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/misc%21typo3%21phar-stream-wrapper%21src%21Interceptor%21ConjunctionInterceptor.php/class/ConjunctionInterceptor/7.x", "instruction": "What does the assert method of the ConjunctionInterceptor class do in Drupal 7?", "context": "", "response": "public function assert($path, $command): Executes all contained assertions and returns true if all pass, or throws an exception if any fail.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-ca2f59c29c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.module/function/update_create_fetch_task/7.x", "instruction": "What does the update_create_fetch_task function do in the update module of Drupal 7?", "context": "", "response": "function update_create_fetch_task($project): Creates a new fetch task after loading the necessary include file and delegates creation to _update_create_fetch_task.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ca60c31d5e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.field.inc/function/image_field_formatter_settings_summary/7.x", "instruction": "What does the image_field_formatter_settings_summary function return in Drupal 7?", "context": "", "response": "function image_field_formatter_settings_summary($field, $instance, $view_mode): Generates a summary of the image formatter settings showing the selected image style and link type if configured, joined with .", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ca79a4240b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.admin.inc/function/search_admin_settings_validate/7.x", "instruction": "What does the function search_admin_settings_validate do in Drupal 7 when validating the search configuration form?", "context": "", "response": "function search_admin_settings_validate($form, &$form_state): Checks that the search module selected as default is among the active modules and, if not, displays a form error.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ca9988dd1f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_user_operations/7.x", "instruction": "What user operations does the function user_user_operations return in Drupal 7?", "context": "", "response": "function user_user_operations($form = array(), $form_state = array()): implements hook_user_operations and returns an array with bulk operations for users (unlock, block, cancel and role management if the user has the 'administer permissions' permission).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-caa00673c1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21translation%21translation.module/function/translation_node_prepare/7.x", "instruction": "What does the function translation_node_prepare do when implementing hook_node_prepare in Drupal?", "context": "", "response": "function translation_node_prepare($node): Prepares a node for translation by loading the source translation and setting the language and translation fields.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cac9ab451b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_array_set_nested_value/7.x", "instruction": "How is the function drupal_array_set_nested_value used to assign a value in a nested array of variable depth in Drupal 7?", "context": "", "response": "function drupal_array_set_nested_value(array &$array, array $parents, $value, $force = FALSE): sets a value in a nested array using a list of parent keys, creating intermediate containers if $force is TRUE and the path contains non-array values.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cadc937826", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7065/7.x", "instruction": "What does the function system_update_7065 do when updating from Drupal 6.x to 7.x on the sessions table?", "context": "", "response": "function system_update_7065(): Removes the default value from the sid column, redefines its type and adds a composite primary key (sid, ssid), then deletes sessions with empty sid.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cae590f688", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.pages.inc/function/template_preprocess_user_profile_item/7.x", "instruction": "What does the function template_preprocess_user_profile_item do in Drupal 7 and what variables does it prepare for the template user-profile-item.tpl.php?", "context": "", "response": "function template_preprocess_user_profile_item(&$variables): prepares the variables title, value and attributes from the passed element, assigning the title, markup and corresponding HTML attributes for use in the template user-profile-item.tpl.php.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cafe0f89fe", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_add_body_field/7.x", "instruction": "What does the function node_add_body_field do in Drupal 7?", "context": "", "response": "function node_add_body_field($type, $label = 'Body'): Adds the default body field to a node type, creating the field and its instance if they do not exist and returning the field instance.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cb00b829c5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/function/drupal_check_profile/7.x", "instruction": "What does the function drupal_check_profile do in Drupal 7 and what does it return?", "context": "", "response": "function drupal_check_profile($profile): checks the requirements of the indicated installation profile and returns an array with the results of those requirements.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cb094ab94c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_mail/7.x", "instruction": "What does the user_mail function do in Drupal 7?", "context": "", "response": "function user_mail($key, &$message, $params): implements hook_mail to build the subject and body of the email message using the user account provided in the parameters.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cb1c52b8ec", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpc.inc/function/xmlrpc_base64_get_xml/7.x", "instruction": "How is an XML-RPC base64 object converted to its XML representation via the xmlrpc_base64_get_xml function in Drupal 7?", "context": "", "response": "function xmlrpc_base64_get_xml($xmlrpc_base64): Converts an XML-RPC base64 object into an XML string containing the base64-encoded data.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cb265a4b72", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.core.inc/function/install_settings_form/7.x", "instruction": "How does Drupal build the database configuration form during installation to rewrite settings.php?", "context": "", "response": "function install_settings_form($form, &$form_state, &$install_state): builds a form that allows selecting the database type, displays driver-specific options, and prepares writing settings.php.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cb74d050c7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_create_htaccess/7.x", "instruction": "How to create an .htaccess file in a given directory using the file_create_htaccess function in Drupal 7?", "context": "", "response": "function file_create_htaccess($directory, $private = TRUE, $force_overwrite = FALSE): Creates an .htaccess file in the specified directory, indicating whether it is private or public and whether to overwrite if it already exists.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cb7798e32b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.module/constant/FIELD_CARDINALITY_UNLIMITED/7.x", "instruction": "What value does the FIELD_CARDINALITY_UNLIMITED constant represent in Drupal 7's Field API?", "context": "", "response": "define('FIELD_CARDINALITY_UNLIMITED', -1);: indicates that a field accepts an unlimited number of values.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-cb7f2f70e5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/_drupal_get_filename_fallback/7.x", "instruction": "What does the _drupal_get_filename_fallback function do in Drupal 7 and when is it used as a fallback to locate files?", "context": "", "response": "function _drupal_get_filename_fallback($type, $name, $trigger_error, $database_unavailable): performs a search in the cached file system as a backup mechanism to find the requested file.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cb8602eb8a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21unicode.inc/function/_unicode_check/7.x", "instruction": "What does the _unicode_check function do in Drupal?", "context": "", "response": "function _unicode_check(): Performs checks on Unicode support in PHP and adjusts configuration if necessary.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cb8b672fe7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21translation%21translation.module/function/translation_supported_type/7.x", "instruction": "How to check if a content type has translation support in Drupal 7?", "context": "", "response": "function translation_supported_type($type): checks whether the specified content type supports translations by reading the variable 'language_content_type_' . $type and comparing it to TRANSLATION_ENABLED.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cba41cb563", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.install/function/block_update_7000/7.x", "instruction": "What does the block_update_7000 function do in Drupal 7 and why does it set the block module weight to -5?", "context": "", "response": "function block_update_7000(): Updates the block module weight in the system table to -5 so it runs first and allows other modules to alter its output during hook_page_alter().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cbb745f578", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.install/function/_update_requirement_check/7.x", "instruction": "What does the _update_requirement_check($project, $type) function do in Drupal 7?", "context": "", "response": "function _update_requirement_check($project, $type): Generates the requirements array for hook_requirements() from the project data and its type (core or contrib).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cbb7c6783b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.install/function/forum_uninstall/7.x", "instruction": "What does the forum_uninstall function do when uninstalling the Forum module in Drupal 7?", "context": "", "response": "function forum_uninstall(): Removes the Forum module variables, deletes the taxonomy_forums field, and executes a batch field purge to allow the Taxonomy module to be uninstalled.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cbc2857032", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21ajax.inc/function/ajax_command_css/7.x", "instruction": "What does the ajax_command_css function do in Drupal 7 and how is it used to create a CSS Ajax command?", "context": "", "response": "function ajax_command_css($selector, $argument): Creates a 'css' Ajax command that tells the client to use jQuery css() to apply the key/value pairs from $argument to the $selector.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cbe07722cb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.info.inc/function/field_info_field_settings/7.x", "instruction": "What does the field_info_field_settings function do in Drupal?", "context": "", "response": "function field_info_field_settings($type): Returns the default configuration values for a field type, or an empty array if not defined.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cbf1ab8caa", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.install/function/node_update_7013/7.x", "instruction": "What does the node_update_7013 update function do in Drupal 7?", "context": "", "response": "function node_update_7013(): Changes the default value of the vid column in the {node} table from 0 to NULL and recreates its unique key to avoid MySQL deadlocks.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cbfbedcae0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21pager.inc/function/pager_get_query_parameters/7.x", "instruction": "What does the pager_get_query_parameters() function do in Drupal 7 and what does it return?", "context": "", "response": "function pager_get_query_parameters(): Composes an array of URL query parameters for pagination links, returning all components of the current request except those related to pagination.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cc1d169f58", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_htaccess_lines/7.x", "instruction": "What does the file_htaccess_lines function do in Drupal?", "context": "", "response": "function file_htaccess_lines($private = TRUE): Returns the standard .htaccess lines that Drupal writes to file directories, with different configurations for private (default) or public directories.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cc275a8562", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_link/7.x", "instruction": "What does Drupal 7's theme_link function do and how does it generate link HTML?", "context": "", "response": "function theme_link($variables): generates an HTML anchor tag from the path, options, and text, delegating the URL to url() and attributes to drupal_attributes().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cc32df3d57", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.module/function/menu_overview_title/7.x", "instruction": "What does the menu_overview_title function do in Drupal 7 and what does it return?", "context": "", "response": "function menu_overview_title($menu): returns the menu title by getting it from the $menu['title'] element.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cc47479c75", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21language.inc/function/language_negotiation_info/7.x", "instruction": "How to get the complete list of available language negotiation providers in Drupal 7?", "context": "", "response": "function language_negotiation_info(): Returns an array with all defined language negotiation providers, including the default provider, and allows other modules to alter the list.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cc4ce836be", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.report.inc/function/theme_update_status_label/7.x", "instruction": "What does the theme_update_status_label function return in Drupal 7 to indicate a project's update status?", "context": "", "response": "function theme_update_status_label($variables): Returns HTML with a status label based on the project's update code.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cc6bd49379", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21language.inc/function/language_provider_weight/7.x", "instruction": "How is the weight of a language negotiation provider determined in Drupal 7 using the language_provider_weight() function?", "context": "", "response": "function language_provider_weight($provider): Returns the provider's weight if defined and numeric; otherwise returns the default value (the $provider itself if numeric, or 0).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cc85f63c9c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.module/function/field_get_items/7.x", "instruction": "How to get field items in the language they will be displayed using field_get_items in Drupal 7?", "context": "", "response": "function field_get_items($entity_type, $entity, $field_name, $langcode = NULL): Returns an array of field items keyed by delta in the appropriate language, or FALSE if none exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cc910d6c47", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.install/function/node_update_7006/7.x", "instruction": "What does the node_update_7006 update function do in Drupal 7 and how does it process nodes to migrate body/teaser to fields and the status, comment, promote, and sticky columns to the {node_revision} table?", "context": "", "response": "function node_update_7006(&$sandbox): Converts node body and teaser properties to fields and migrates the status, comment, promote, and sticky columns to the {node_revision} table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ccc8287675", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21cache.inc/function/cache_get/7.x", "instruction": "How to get persistent cache data using the cache_get function in Drupal 7?", "context": "", "response": "function cache_get($cid, $bin = 'cache'): returns cached data for a given ID and optional bin, automatically deserializing objects and arrays.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ccefe782e3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_cron_settings/7.x", "instruction": "What does the function system_cron_settings do in Drupal 7?", "context": "", "response": "function system_cron_settings(): Builds the cron settings form, showing description, run cron button, status, URL, and scheduling options.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ccf4969d19", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/update.php/function/update_task_list/7.x", "instruction": "What does the function update_task_list() do in Drupal 7?", "context": "", "response": "function update_task_list($active = NULL): Adds the update task list to the sidebar_first region of the current page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ccf56ffc3d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_field_widget_form/7.x", "instruction": "How does taxonomy_field_widget_form implement hook_field_widget_form in Drupal 7 to render the taxonomy term widget?", "context": "", "response": "function taxonomy_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element): Builds a textfield element with default value based on loaded terms and an autocomplete path, validating with taxonomy_autocomplete_validate.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd14ac872c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/_system_rebuild_theme_data/7.x", "instruction": "What does the function _system_rebuild_theme_data() do in Drupal 7 and what data type does it return?", "context": "", "response": "function _system_rebuild_theme_data(): Scans and collects information from theme .info files and their engines, returning an associative array with data of all available themes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd22b38f5a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.module/function/openid_authentication/7.x", "instruction": "What does the function openid_authentication do in Drupal 7?", "context": "", "response": "function openid_authentication($response): Authenticates a user or attempts registration using the OpenID provider response.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd27be6375", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.tokens.inc/function/user_token_info/7.x", "instruction": "What user types and tokens does the function user_token_info() register when implementing hook_token_info() in Drupal 7?", "context": "", "response": "function user_token_info(): defines the 'user' and 'current-user' types and returns tokens for uid, name, mail, URLs, and account dates.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd374c2416", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_unpublish_by_keyword_action_submit/7.x", "instruction": "What does the function node_unpublish_by_keyword_action_submit do in Drupal 7?", "context": "", "response": "function node_unpublish_by_keyword_action_submit($form, $form_state): Saves the form configuration for the node_unpublish_by_keyword_action action, returning an array with keywords processed via drupal_explode_tags.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd4ac24fdb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_list_system_menus/7.x", "instruction": "What does the function menu_list_system_menus return in Drupal 7?", "context": "", "response": "function menu_list_system_menus(): Returns an array with the names of the system menus (default).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd5022b437", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpc.inc/function/xmlrpc_message_get/7.x", "instruction": "What does the xmlrpc_message_get function do in Drupal 7?", "context": "", "response": "function xmlrpc_message_get(): Returns the most recently stored XML-RPC message object.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd540658ca", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.form.inc/function/theme_field_multiple_value_form/7.x", "instruction": "What does the theme_field_multiple_value_form function do in Drupal 7?", "context": "", "response": "function theme_field_multiple_value_form($variables): Generates the HTML of a form element, displaying multiple values in a table with drag-and-drop functionality to reorder them.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd66dcb737", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21number%21number.module/function/number_field_widget_error/7.x", "instruction": "What does the number_field_widget_error function do, which implements hook_field_widget_error() in Drupal 7?", "context": "", "response": "function number_field_widget_error($element, $error, $form, &$form_state): Displays a form error in the 'value' subelement using the received error message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd686c10f2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.install/function/openid_update_6000/7.x", "instruction": "What does the openid_update_6000 function do?", "context": "", "response": "function openid_update_6000(): Creates the openid_nonce table to store OpenID nonces and prevent replay attacks.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd6e36a6f4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_is_page/7.x", "instruction": "How to determine if the current page corresponds to the full view of a given node using the node_is_page function?", "context": "", "response": "function node_is_page($node): Returns the node ID if the current page is its full view, or FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd74713a8d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.attach.inc/function/field_attach_presave/7.x", "instruction": "What does the field_attach_presave function do in Drupal 7 and when is it called?", "context": "", "response": "function field_attach_presave($entity_type, $entity): Executes the necessary operations just before saving field data, invoking the presave hook of each field and allowing other modules to act via field_attach_presave.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd7af0a718", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.module/function/profile_block_configure/7.x", "instruction": "What does the profile_block_configure function do in Drupal 7 and what hook does it implement?", "context": "", "response": "function profile_block_configure($delta = ''): Implements hook_block_configure() and returns a form with checkboxes to choose which public profile fields to display in the block, also adding a link to the user's full profile.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd7b7739c4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.admin.inc/function/aggregator_form_category/7.x", "instruction": "What does the function aggregator_form_category do in Drupal 7?", "context": "", "response": "function aggregator_form_category($form, &$form_state, $edit = array( 'title' => '', 'description' => '', 'cid' => NULL, )): Builds the form for adding, editing, or deleting aggregator categories.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd7cf7e9b5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.admin.inc/function/image_style_name_validate/7.x", "instruction": "What does the function image_style_name_validate do in Drupal to validate image style names?", "context": "", "response": "function image_style_name_validate($element, $form_state): validates that the image style name is unique and contains only URL-safe characters (lowercase alphanumeric, dashes and underscores), showing errors if violated.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd838e24ae", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/update.php/constant/DRUPAL_ROOT/7.x", "instruction": "What does the constant DRUPAL_ROOT define in Drupal 7 and where is it declared?", "context": "", "response": "define('DRUPAL_ROOT', getcwd());: defines the root directory of the Drupal installation by getting the current working directory.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-cd8f27b562", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_widget_info_alter/7.x", "instruction": "What does the hook hook_field_widget_info_alter do in Drupal 7?", "context": "", "response": "function hook_field_widget_info_alter(&$info): allows altering field widget types in the Fields API, receiving an array by reference with the widget information exposed by hook_field_widget_info().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cd94529875", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_system_theme_engine_info/7.x", "instruction": "What does the hook hook_system_theme_engine_info() do in Drupal 7 and what is its return value?", "context": "", "response": "function hook_system_theme_engine_info(): Allows modules to register additional theme engines outside the themes/engines directory and returns an associative array where the key is the engine name and the value is the path to its .engine file.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cdacfbbc40", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_modules/7.x", "instruction": "What does the function system_modules do in Drupal?", "context": "", "response": "function system_modules($form, $form_state = array()): Provides the interface for enabling and disabling modules, including dependency checking.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cdb2680c28", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/function/block_modules_uninstalled/7.x", "instruction": "What does the function block_modules_uninstalled implemented in modules/block/block.module do in Drupal 7 when modules are uninstalled?", "context": "", "response": "function block_modules_uninstalled($modules): Removes from the block and block_role tables all records whose module is in the $modules list of uninstalled modules.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cdb3f8b35e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21toolbar%21toolbar.module/function/toolbar_system_info_alter/7.x", "instruction": "What does the function toolbar_system_info_alter do when implementing hook_system_info_alter in Drupal 7?", "context": "", "response": "function toolbar_system_info_alter(&$info, $file, $type): Adds the 'page_top' region to the overlay supplementary regions when the type is theme, so the toolbar updates when its content changes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cdc73d6701", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/filter_help/7.x", "instruction": "What does the filter_help function implement in the Drupal 7 Filter module and what help content does it provide?", "context": "", "response": "function filter_help($path, $arg): implements hook_help() to display information about text format settings, their uses, and security warnings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cdccee5792", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/external_documentation%21developer%21globals.php/global/items/7.x", "instruction": "What is the global $items variable in Drupal 7 and what is it used for?", "context": "", "response": "global $items;: stores an array of items used by the aggregator.", "tags": ["api-reference", "global"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cdda08b302", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_get_private_key/7.x", "instruction": "How to obtain the private key used to generate tokens in Drupal 7?", "context": "", "response": "function drupal_get_private_key(): ensures the private key variable exists and returns it.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cde2ffec8c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/_filter_url_parse_full_links/7.x", "instruction": "What does the _filter_url_parse_full_links function do in Drupal 7?", "context": "", "response": "function _filter_url_parse_full_links($match): converts absolute URLs to HTML links acting as a preg_replace_callback within _filter_url().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cde30fb1d8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_node_type_update/7.x", "instruction": "What does hook_node_type_update do in Drupal 7 and when is it invoked?", "context": "", "response": "function hook_node_type_update($info): Invoked from node_type_save() after updating a node type in the database and allows reassigning old type settings to the new one, such as comments.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cdec702cb4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.admin.inc/function/block_add_block_form/7.x", "instruction": "What does the block_add_block_form function do in Drupal 7?", "context": "", "response": "function block_add_block_form($form, &$form_state): is the form constructor for adding a block and delegates to block_admin_configure with type 'block'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ce1d024aeb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_time_zones/7.x", "instruction": "How to get an array of time zones with their local date and time in Drupal 7 using the system_time_zones function?", "context": "", "response": "function system_time_zones($blank = NULL): Generates an array of time zones and their local date/time, optionally adding a blank option.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ce52b2b16a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_actions_delete_form_submit/7.x", "instruction": "What does the system_actions_delete_form_submit function do in Drupal?", "context": "", "response": "function system_actions_delete_form_submit($form, &$form_state): Processes the submission of the system_actions_delete form, loads the action, deletes it, logs an event in watchdog, displays a success message, and redirects to the actions management page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ce7014e29c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.field.inc/function/theme_file_widget/7.x", "instruction": "What does the theme_file_widget function return in Drupal 7?", "context": "", "response": "function theme_file_widget($variables): Returns the HTML for an individual file upload widget, including the file size if it exists.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ce7444e42e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_update_last_removed/7.x", "instruction": "What should hook_update_last_removed() return and what is it used for in Drupal 7?", "context": "", "response": "function hook_update_last_removed(): returns an integer corresponding to the last deleted hook_update_N() from the .install file, so Drupal does not skip updates by mistake.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ce906558b3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21announcements_feed%21announcements_feed.module/constant/ANNOUNCEMENTS_FEED_DEFAULT_LINK/7.x", "instruction": "What is the default URL for the Drupal.org announcements feed defined by the constant ANNOUNCEMENTS_FEED_DEFAULT_LINK in the announcements_feed module?", "context": "", "response": "define('ANNOUNCEMENTS_FEED_DEFAULT_LINK', 'https://www.drupal.org/about/announcements');: Defines the default URL for the announcements feed on drupal.org, used by announcements_feed_get_announcements to obtain the list of announcements.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-ce9fe3593c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_last_changed/7.x", "instruction": "What does the node_last_changed function do in Drupal 7?", "context": "", "response": "function node_last_changed($nid): Returns a Unix timestamp indicating the last time the specified node was modified.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ceabd15a81", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.admin.inc/function/locale_translate_delete_page/7.x", "instruction": "What does the locale_translate_delete_page($lid) function do in Drupal 7?", "context": "", "response": "function locale_translate_delete_page($lid): Displays a confirmation page to delete a translation string and returns the deletion form if the string exists, or MENU_NOT_FOUND otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ceb1d7d4d5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.install/function/user_update_7015/7.x", "instruction": "What does the user_update_7015 function do in Drupal 7?", "context": "", "response": "function user_update_7015(): changes the signature_format field of the {users} table to varchar type with length 255, allowing nulls and adding a description indicating the signature filter format.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ceb26625c0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.admin.inc/function/_forum_parent_select/7.x", "instruction": "What does the _forum_parent_select function do and how is it used to generate a parent term select in Drupal 7?", "context": "", "response": "function _forum_parent_select($tid, $title, $child_type): Returns a select form element with the available parent terms for a given term, excluding its own descendants and adapting the description depending on whether the child is a forum or a container.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cef907e4ae", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/_form_options_flatten/7.x", "instruction": "What does the _form_options_flatten($array) function do in Drupal?", "context": "", "response": "function _form_options_flatten($array): Iterates over an array and returns a flattened version without duplicate keys, also handling objects within the array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cf08ec78a9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21unicode.inc/constant/UNICODE_SINGLEBYTE/7.x", "instruction": "What does the constant UNICODE_SINGLEBYTE indicate in Drupal 7 and where is it defined?", "context": "", "response": "define('UNICODE_SINGLEBYTE', 0);: Indicates that standard PHP unicode support (emulated) is being used instead of mbstring.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-cf0ae96d80", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_validate_is_image/7.x", "instruction": "How does the function file_validate_is_image verify if an uploaded file is a valid image in Drupal?", "context": "", "response": "function file_validate_is_image(stdClass $file): Checks if the file is recognized as an image by image_get_info() and returns an empty errors array if valid, or with a message if not or if the extension is not allowed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cf37ced498", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_build_node_index/7.x", "instruction": "How does the function taxonomy_build_node_index build and insert taxonomy index entries for a node in Drupal 7?", "context": "", "response": "function taxonomy_build_node_index($node): collects term IDs from the node's taxonomy fields and inserts them into the taxonomy_index table only if the node is published.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cf3b0c45dd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.module/function/profile_user_cancel/7.x", "instruction": "What does the function profile_user_cancel do in Drupal 7?", "context": "", "response": "function profile_user_cancel($edit, $account, $method): implements hook_user_cancel and removes user profile values when the cancellation method is 'user_cancel_reassign'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cf3cc42a46", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/_menu_clear_page_cache/7.x", "instruction": "What does the function _menu_clear_page_cache do in Drupal 7 and how does it control the number of cache clears per page load?", "context": "", "response": "function _menu_clear_page_cache(): Clears page and block caches at most twice per page load, using drupal_static to track calls: on the first it clears immediately and on the second registers shutdown functions to do it at the end.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cf45e0e3b5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.api.php/function/hook_taxonomy_vocabulary_delete/7.x", "instruction": "What does hook_taxonomy_vocabulary_delete do in Drupal 7 and when is it invoked?", "context": "", "response": "function hook_taxonomy_vocabulary_delete($vocabulary): Allows modules to respond to the deletion of taxonomy vocabularies from the database, receiving the deleted vocabulary object as a parameter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cf463ae523", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21options%21options.module/function/_options_get_options/7.x", "instruction": "What does the function _options_get_options of the options module do in Drupal 7?", "context": "", "response": "function _options_get_options($field, $instance, $properties, $entity_type, $entity): Collects field options by invoking hook_options_list, sanitizes them, flattens the array if there are no option groups, and adds an empty option if required.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cf5a0c824f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.module/function/profile_form_alter/7.x", "instruction": "What does the function profile_form_alter do and what parameters does it receive in Drupal 7?", "context": "", "response": "function profile_form_alter(&$form, &$form_state, $form_id): Implements hook_form_alter to modify the user registration or profile form by adding validation and custom fields.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cf5ad9afe6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.info.inc/function/field_info_formatter_settings/7.x", "instruction": "What does the field_info_formatter_settings function do in Drupal?", "context": "", "response": "function field_info_formatter_settings($type): Returns the default configuration values of a field formatter, or an empty array if not defined.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cf85f0a167", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_ensure_htaccess/7.x", "instruction": "What does the file_ensure_htaccess function do in Drupal 7?", "context": "", "response": "function file_ensure_htaccess(): Creates a .htaccess file in each Drupal files directory if missing.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cf9d7e65a9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_block_view/7.x", "instruction": "What does the locale_block_view($type) function do in Drupal 7?", "context": "", "response": "function locale_block_view($type): Displays a language switcher only when at least two languages are available.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cfa64d0c17", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/template_process/7.x", "instruction": "What does the template_process function do in Drupal 7?", "context": "", "response": "function template_process(&$variables, $hook): Adds helper variables derived from variables defined during the preprocessing phase, converting class and attribute arrays into strings for use in templates.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cfa9b30a6e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.admin.inc/function/aggregator_form_category_submit/7.x", "instruction": "What operations does the aggregator_form_category_submit submit handler perform when processing the aggregator category form in Drupal 7?", "context": "", "response": "function aggregator_form_category_submit($form, &$form_state): Processes the aggregator category form submission, saving the category, displaying status messages, logging to watchdog, and redirecting based on the operation (add, update, or delete).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-cfcf031814", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.module/constant/UPDATE_NOT_SECURE/7.x", "instruction": "What does the UPDATE_NOT_SECURE constant indicate in the Update module of Drupal 7?", "context": "", "response": "define('UPDATE_NOT_SECURE', 1);: indicates that a project has pending security updates (lack of security updates).", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-cffa52cc8c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/drupal_retrieve_form/7.x", "instruction": "What does the drupal_retrieve_form function do in Drupal 7?", "context": "", "response": "function drupal_retrieve_form($form_id, &$form_state): Retrieves the structured array that defines the form specified by its ID.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d005021ae2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_node_presave/7.x", "instruction": "What does the function forum_node_presave do and what hook does it implement?", "context": "", "response": "function forum_node_presave($node): Implements hook_node_presave() and assigns forum taxonomy when adding a topic from within a forum.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d0060b3240", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.admin.inc/function/locale_translate_delete_form/7.x", "instruction": "What does the function locale_translate_delete_form do in Drupal 7?", "context": "", "response": "function locale_translate_delete_form($form, &$form_state, $source): Generates the confirmation form for deleting a translation string, showing the string text and a warning that all its translations in all languages will be deleted.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d009ef9484", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21blog%21blog.install/function/blog_install/7.x", "instruction": "What does the function blog_install do when installing the blog module in Drupal?", "context": "", "response": "function blog_install(): Ensures the blog node type is available and adds the body field to that node type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d01ff7353e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.api.php/function/hook_image_effect_info/7.x", "instruction": "How is information about image effects provided by a module defined via hook_image_effect_info() in Drupal 7?", "context": "", "response": "function hook_image_effect_info(): Defines information about image effects provided by a module.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d023fe54ce", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7078/7.x", "instruction": "What does the update function system_update_7078 do in Drupal 7?", "context": "", "response": "function system_update_7078(): Removes the existing unique key in the date_formats table, changes the format field to binary type, and recreates the unique key on format and type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d03b18ec56", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_menu_local_tasks_alter/7.x", "instruction": "What does the function node_menu_local_tasks_alter do in Drupal 7?", "context": "", "response": "function node_menu_local_tasks_alter(&$data, $router_item, $root_path): Adds an action link to 'node/add' on the 'admin/content' page when altering menu local tasks.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d05a4597fe", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_settings_form_submit/7.x", "instruction": "What does the function system_settings_form_submit do in Drupal 7?", "context": "", "response": "function system_settings_form_submit($form, &$form_state): Saves the form values as system variables, applying an array filter if array_filter is configured.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d0848634a1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_comment_publish/7.x", "instruction": "What does the function search_comment_publish do in Drupal when a comment is published?", "context": "", "response": "function search_comment_publish($comment): Reindexes the node associated with the comment when it is published, calling search_touch_node with the comment's nid.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d0b1586fa6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21overlay%21overlay.module/function/overlay_menu/7.x", "instruction": "What does the overlay_menu function do in relation to hook_menu() in Drupal?", "context": "", "response": "function overlay_menu(): Implements hook_menu() and configures menu items such as overlay-ajax and overlay/dismiss-message with specific arguments and access.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d0b70262c0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21stream_wrappers.inc/constant/STREAM_WRAPPERS_LOCAL_HIDDEN/7.x", "instruction": "What is the constant STREAM_WRAPPERS_LOCAL_HIDDEN in Drupal 7 and how is it defined in the source code?", "context": "", "response": "define('STREAM_WRAPPERS_LOCAL_HIDDEN', STREAM_WRAPPERS_LOCAL | STREAM_WRAPPERS_HIDDEN);: Defines a local stream wrapper type that is hidden and allows file reading and writing.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-d0caaa5e1a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/url/7.x", "instruction": "How does Drupal 7's url function generate an internal or external URL from a path and options?", "context": "", "response": "function url($path = NULL, array $options = array()): Generates an internal or external URL from the given path and an array of options, handling aliases, query parameters, fragments, HTTPS scheme, and clean URLs.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d0eb536d6c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_process_checkbox/7.x", "instruction": "What does the form_process_checkbox function do in Drupal 7?", "context": "", "response": "function form_process_checkbox($element, $form_state): Sets the #checked property of a checkbox element.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d0f3088d4d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.admin.inc/function/comment_admin/7.x", "instruction": "What does the comment_admin function do in Drupal?", "context": "", "response": "function comment_admin($type = 'new'): It is a menu callback that presents an administrative list of comments, handling delete operations or displaying the overview based on the type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d121e32b76", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_system_themes_page_alter/7.x", "instruction": "What does hook_system_themes_page_alter do in Drupal?", "context": "", "response": "function hook_system_themes_page_alter(&$theme_groups): Adds theme operation links to each theme group specified in the $theme_groups array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d12d627377", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/timer_stop/7.x", "instruction": "What does the timer_stop method of the BootstrapTimer class do in Drupal?", "context": "", "response": "function timer_stop($name): Stops the timer with the specified name and returns an array with the start and stop counts along with the accumulated time in milliseconds.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d12e470c1f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.api.php/function/hook_openid_discovery_method_info/7.x", "instruction": "What does hook_openid_discovery_method_info do in Drupal?", "context": "", "response": "function hook_openid_discovery_method_info(): Allows modules to declare OpenID discovery methods, returning an associative array with the method names and their callbacks.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d1a0ff484b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_ip_blocking_delete_submit/7.x", "instruction": "What does the function system_ip_blocking_delete_submit do in Drupal 7?", "context": "", "response": "function system_ip_blocking_delete_submit($form, &$form_state): Processes the submission of the blocked IP deletion form, removes the IP from the blocked_ips table, logs the action, displays a confirmation message, and redirects to the IP blocking administration page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d1ba09e842", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_storage_purge/7.x", "instruction": "What does the hook hook_field_storage_purge do and when is it invoked in Drupal 7?", "context": "", "response": "function hook_field_storage_purge($entity_type, $entity, $field, $instance): Removes field storage information when its data is purged.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d1d207afd9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dblog%21dblog.admin.inc/function/dblog_filter_form/7.x", "instruction": "How is the filter form for the database log constructed in Drupal 7?", "context": "", "response": "function dblog_filter_form($form): Builds the form used to filter database log (dblog) messages.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d1fa1e63a8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpcs.inc/function/xmlrpc_server_multicall/7.x", "instruction": "How does the function xmlrpc_server_multicall work to dispatch multiple XML-RPC requests in Drupal 7?", "context": "", "response": "function xmlrpc_server_multicall($methodcalls): Processes an array of XML-RPC calls validating syntax, limiting duplicates, avoiding recursion, and executing each method via xmlrpc_server_call, returning an array with the results or errors of each request.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d20d2b60ac", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_cancel_access/7.x", "instruction": "How does the function user_cancel_access determine if a user can access the account cancellation page in Drupal 7?", "context": "", "response": "function user_cancel_access($account): Limits access to account cancellation pages to users with the 'cancel account' permission or administrators, and prevents the anonymous user from cancelling their account.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d2103c4600", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.effects.inc/function/image_image_effect_info/7.x", "instruction": "What image effects does the function image_image_effect_info define in the Image module of Drupal 7?", "context": "", "response": "function image_image_effect_info(): Returns an array with the definition of six image effects (resize, scale, scale and crop, crop, desaturate, rotate) including their labels, help, effect callbacks, dimensions, form, and summary theme.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d213faa1c7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_entity_info_alter/7.x", "instruction": "What does the function forum_entity_info_alter do in Drupal for taxonomy terms that are forums?", "context": "", "response": "function forum_entity_info_alter(&$info): Modifies the taxonomy_term entity information to set a custom URI callback (forum_uri) on the bundle corresponding to the configured forum vocabulary.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d2487eb063", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_delete_revision/7.x", "instruction": "What does the function hook_field_delete_revision($entity_type, $entity, $field, $instance, $langcode, &$items) do in Drupal 7?", "context": "", "response": "function hook_field_delete_revision($entity_type, $entity, $field, $instance, $langcode, &$items): Defines the custom revision deletion behavior for field types and is invoked just before deleting the field data in field_attach_delete_revision for versioned field entities.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d274e219d7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_block_view/7.x", "instruction": "How does the function user_block_view implement hook_block_view to generate user blocks in Drupal 7?", "context": "", "response": "function user_block_view($delta = ''): returns the corresponding user block array for the given delta (login, new, or online).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d2804302b7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.crud.inc/function/field_update_field/7.x", "instruction": "What parameters does the function field_update_field receive and what operations does it perform when updating a field in Drupal 7?", "context": "", "response": "function field_update_field($field): Updates the definition of an existing field, validating that the type, entity_types, and storage type are not changed, and executes the storage update hooks.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d2a759cfa1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_schema_alter/7.x", "instruction": "What does the hook hook_schema_alter do in Drupal and how is it used to modify database schemas?", "context": "", "response": "function hook_schema_alter(&$schema): Allows a module to perform alterations on existing database schemas of other modules, such as changing, adding, or removing fields, keys, and indexes, modifying the $schema array by reference.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d2ad2049f7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.pages.inc/function/book_remove_button_submit/7.x", "instruction": "What does the function book_remove_button_submit do in Drupal?", "context": "", "response": "function book_remove_button_submit($form, &$form_state): is the submit handler for the book outline form that redirects the user to the node deletion confirmation page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d2b5f6a085", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/_search_menu_access/7.x", "instruction": "What access validations does the function _search_menu_access perform for the search tabs in Drupal 7?", "context": "", "response": "function _search_menu_access($name): It is an access callback that checks if the user has permission to search content and, if the corresponding module has a search_access function, executes it for additional control.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d2d5b09cc0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/constant/DRUPAL_MAXIMUM_TEMP_FILE_AGE/7.x", "instruction": "What is the value of DRUPAL_MAXIMUM_TEMP_FILE_AGE and what does it represent in Drupal 7?", "context": "", "response": "define('DRUPAL_MAXIMUM_TEMP_FILE_AGE', 21600);: Defines the maximum age of temporary files in seconds (21600).", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-d2e2e645be", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/drupal_basename/7.x", "instruction": "How to get the filename from a URI in Drupal using the function drupal_basename?", "context": "", "response": "function drupal_basename($uri, $suffix = NULL): Gets the filename from a given path, correctly handling streams and names starting with non-US-ASCII characters.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d2f623b99f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21tracker%21tracker.install/function/tracker_enable/7.x", "instruction": "What does the tracker_enable method do and how does it relate to hook_enable in Drupal 7?", "context": "", "response": "function tracker_enable(): Implements hook_enable() and queries the node with the maximum ID to start the indexing process, storing the result in tracker_index_nid and calling tracker_cron() to clean up obsolete records.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d31b571e33", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/constant/WATCHDOG_DEBUG/7.x", "instruction": "What is the value of the WATCHDOG_DEBUG constant in Drupal 7 and what watchdog severity level does it represent?", "context": "", "response": "define('WATCHDOG_DEBUG', 7);: defines the DEBUG severity level for watchdog messages with value 7.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-d33d6158e8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/template_preprocess_page/7.x", "instruction": "What does the template_preprocess_page function do in Drupal 7?", "context": "", "response": "function template_preprocess_page(&$variables): preprocesses variables for page.tpl.php setting layout, paths, menus, language, logo, tabs and template suggestions based on the current route.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d34ec50d4b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_hook_info/7.x", "instruction": "What does the system_hook_info function do in Drupal 7?", "context": "", "response": "function system_hook_info(): Implements hook_hook_info returning an array with the hook information.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d353d0bf7b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.authorize.inc/function/update_authorize_update_batch_finished/7.x", "instruction": "What does the update_authorize_update_batch_finished function do in Drupal 7?", "context": "", "response": "function update_authorize_update_batch_finished($success, $results): processes the results of the authorized update batch, saves them in the session so authorize.php displays a report, brings the site back online and clears the update status cache after a successful update.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d35f60a8a0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/archiver_get_archiver/7.x", "instruction": "How does Drupal 7 get the appropriate archiver class for a given file via archiver_get_archiver?", "context": "", "response": "function archiver_get_archiver($file): returns an instance of the archiver class corresponding to the file based on its extension, or FALSE if there is no compatible implementation.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d36ba47bfd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21sqlite%21query.inc/class/DeleteQuery_sqlite/7.x", "instruction": "What does the execute method of the DeleteQuery_sqlite class do in Drupal 7?", "context": "", "response": "public function execute(): executes the DELETE query and returns the number of affected rows, previously calculating the total when there is no WHERE condition to compensate for SQLite's truncation optimization.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-d37898a32b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.api.php/function/hook_shortcut_default_set/7.x", "instruction": "How to implement hook_shortcut_default_set in Drupal 7 to define a specific default shortcut set for a user?", "context": "", "response": "function hook_shortcut_default_set($account): Returns the name of a default shortcut set for the given user account, allowing modules to define default sets by role or condition that differ from the site default.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d3814cce37", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.pages.inc/function/user_profile_form_validate/7.x", "instruction": "What does the function user_profile_form_validate($form, &$form_state) do in Drupal 7?", "context": "", "response": "function user_profile_form_validate($form, &$form_state): Performs validation of the user profile form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d3874d6900", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7036/7.x", "instruction": "What does the function system_update_7036 do during the update from Drupal 6 to 7?", "context": "", "response": "function system_update_7036(): separates the 'access site in maintenance mode' permission from the 'administer site configuration' permission by assigning the new permission to all roles that already had the site configuration administration permission.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d38b688bf1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.module/function/field_ui_field_attach_rename_bundle/7.x", "instruction": "What does the function field_ui_field_attach_rename_bundle do in Drupal 7?", "context": "", "response": "function field_ui_field_attach_rename_bundle($entity_type, $bundle_old, $bundle_new): Clears the entity info cache and rebuilds the menu when a bundle is renamed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d3921516d9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.module/function/update_init/7.x", "instruction": "What does the function update_init that implements hook_init do in Drupal 7?", "context": "", "response": "function update_init(): Implements hook_init to check core and contribution update status and display error or warning messages on administration pages, except on specific routes where notification is suppressed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d3a1698574", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.pages.inc/function/user_logout/7.x", "instruction": "What does the function user_logout do in Drupal 7?", "context": "", "response": "function user_logout(): Logs out the current user and redirects them to the front page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d3a2f8431b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.module/function/file_managed_file_pre_render/7.x", "instruction": "What does the function file_managed_file_pre_render do in Drupal?", "context": "", "response": "function file_managed_file_pre_render($element): Hides the upload widget when a file is already attached and the remove widget when there isn't one.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d3ae8f6ce5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21field_sql_storage%21field_sql_storage.module/function/field_sql_storage_field_storage_details/7.x", "instruction": "What does the function field_sql_storage_field_storage_details do in Drupal?", "context": "", "response": "function field_sql_storage_field_storage_details($field): Implements hook_field_storage_details to return the SQL storage details of a field, mapping the real names of its columns and the corresponding tables for current and revision loads.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d3bf56ef2f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_url_outbound_alter/7.x", "instruction": "What does the function locale_url_outbound_alter do in Drupal 7?", "context": "", "response": "function locale_url_outbound_alter(&$path, &$options, $original_path): Rewrites outbound URLs by adding language-based prefixes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d3e31c7091", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21contact%21contact.install/function/contact_update_7001/7.x", "instruction": "What does the contact_update_7001 function do in Drupal 7?", "context": "", "response": "function contact_update_7001(): Renames the permission 'administer site-wide contact form' to 'administer contact forms' in the role_permission table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d3e5ba64bd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_field_formatter_view/7.x", "instruction": "How does the taxonomy_field_formatter_view function implement hook_field_formatter_view in Drupal 7 to render taxonomy term reference fields?", "context": "", "response": "function taxonomy_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display): Builds a renderable array to display taxonomy term reference fields based on formatter type, generating links, plain text, or RSS categories and handling autocreate terms.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d3ed4a3b3d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.admin.inc/function/image_style_form_submit/7.x", "instruction": "What does the image_style_form_submit function do in the image.admin.inc file in Drupal 7?", "context": "", "response": "function image_style_form_submit($form, &$form_state): Processes the image style edit form submission, updating its name, label, and effect weights, saving the style, and displaying a confirmation message before redirecting.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d413da59c3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_field_comment_form_submit/7.x", "instruction": "What does the locale_field_comment_form_submit function do in the comment form submit handler in Drupal 7?", "context": "", "response": "function locale_field_comment_form_submit($form, &$form_state): It is the comment form submit handler that runs before building the entity to alter the attached field values.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d425fde4f6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_node_update/7.x", "instruction": "How does the book_node_update function update book data when hook_node_update() is invoked in Drupal 7?", "context": "", "response": "function book_node_update($node): Sets the book's bid and nid from the node and calls _book_update_outline to update the book hierarchy.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d429601bdc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_stream_wrapper_valid_scheme/7.x", "instruction": "How is a stream URI scheme verified to be valid in Drupal 7?", "context": "", "response": "function file_stream_wrapper_valid_scheme($scheme): Checks that the scheme has a registered stream wrapper and is callable, returning TRUE or FALSE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d42baf57fe", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.install/function/node_schema/7.x", "instruction": "What does the node_schema function do in Drupal 7?", "context": "", "response": "function node_schema(): defines the database schema of the node module, implementing hook_schema() and returning an array with the tables node, node_access, node_revision, node_type, block_node_type, and history.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d43c4a6c56", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.attach.inc/function/_field_invoke/7.x", "instruction": "What does the _field_invoke function do in Drupal 7 and when is it used?", "context": "", "response": "function _field_invoke($op, $entity_type, $entity, &$a = NULL, &$b = NULL, $options = array()): Invokes the field hook indicated by $op on an entity, executing the corresponding implementation (hook_field_[op] or field_default_[op]) for each field instance.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d44b5b8669", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_rdf_mapping/7.x", "instruction": "What does the user_rdf_mapping function return in Drupal 7?", "context": "", "response": "function user_rdf_mapping(): Returns an array that defines the RDF mapping for the user entity, specifying its type sioc:UserAccount and the predicates foaf:name and foaf:page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d454638ad6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.tokens.inc/function/system_token_info/7.x", "instruction": "What token types does the system_token_info function define and what information does it provide for each in Drupal 7?", "context": "", "response": "function system_token_info(): Implements hook_token_info() and defines the token types 'site', 'date' and 'file' with their respective tokens, names, descriptions and metadata such as 'needs-data' or 'type'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d460e0ae42", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_block_view/7.x", "instruction": "What does the system_block_view function do in Drupal 7 and how does it handle different values of $delta?", "context": "", "response": "function system_block_view($delta = ''): Implements hook_block_view() and generates blocks based on the value of $delta: 'main' returns the page content, 'powered-by' shows a promotional link to Drupal.org, 'help' shows the active menu help, and by default generates blocks from system menus.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d47a36a650", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.admin.inc/function/shortcut_link_delete/7.x", "instruction": "What does the shortcut_link_delete function do in Drupal?", "context": "", "response": "function shortcut_link_delete($form, &$form_state, $shortcut_link): Builds the confirmation form for deleting a shortcut link.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d4851dfa42", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.module/function/_aggregator_items/7.x", "instruction": "What does the _aggregator_items function do in Drupal?", "context": "", "response": "function _aggregator_items($count): Returns a string with the plural format '@count items' for the given number of items.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d494e22877", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21number%21number.module/function/number_field_is_empty/7.x", "instruction": "How does the number_field_is_empty function determine if a numeric field is empty in Drupal 7?", "context": "", "response": "function number_field_is_empty($item, $field): Returns TRUE if the element value is empty and is not the string '0', otherwise returns FALSE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d49799f151", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/external_documentation%21developer%21globals.php/global/base_theme_info/7.x", "instruction": "How is the global variable $base_theme_info declared in Drupal and what information does it contain about the base theme?", "context": "", "response": "global $base_theme_info;: Global variable that contains an array of objects representing the system base theme.", "tags": ["api-reference", "global"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d4d8e41141", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.module/function/menu_load/7.x", "instruction": "What does the menu_load function do in Drupal 7?", "context": "", "response": "function menu_load($menu_name): Loads the data of a custom menu specified by its unique name, returning an array with its definition or FALSE if the menu does not exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d4d9e414b2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21color%21color.module/function/_color_shift/7.x", "instruction": "How does the _color_shift function of the Color module in Drupal 7 work to shift a given color using a reference pair and a target color?", "context": "", "response": "function _color_shift($given, $ref1, $ref2, $target): Calculates a delta factor by comparing the RGB differences between the reference and target colors, applies that factor to the given color, and corrects the result in HSL space to preserve relative saturation and lightness positions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d4e817f584", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.admin.inc/function/image_style_add_form_name_exists/7.x", "instruction": "How to check if a machine name for an image style already exists in Drupal 7?", "context": "", "response": "function image_style_add_form_name_exists($name): Checks if the proposed machine name for an image style is already in use, returning TRUE if it exists or FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d4ecf1be7f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/watchdog_severity_levels/7.x", "instruction": "What does the watchdog_severity_levels function return in Drupal 7?", "context": "", "response": "function watchdog_severity_levels(): Returns an array with the severity levels defined in RFC 3164 for log messages.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d50b9ee476", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_user_operations_block/7.x", "instruction": "What does the user_user_operations_block($accounts) function do in Drupal 7?", "context": "", "response": "function user_user_operations_block($accounts): Massively blocks user accounts passed in $accounts if they are active, loading and saving them with status 0.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d50f2a6fe3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21query.inc/class/MergeQuery/7.x", "instruction": "How does MergeQuery::key configure the condition and insert fields in Drupal?", "context": "", "response": "public function key(array $fields, array $values = array()): Adds field-value pairs to the query condition and insert fields, serving as the key for the MERGE operation.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-d52681790a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21translation%21translation.module/function/translation_node_view/7.x", "instruction": "What does the translation_node_view function do in Drupal 7?", "context": "", "response": "function translation_node_view($node, $view_mode): Implements hook_node_view to display translation links with language names when the node belongs to a translation set, using custom links if they exist or simple links obtained via translation_node_get_translations.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d5297268dc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_set_message/7.x", "instruction": "How is the drupal_set_message function used to display a status message to the user in Drupal 7?", "context": "", "response": "function drupal_set_message($message = NULL, $type = 'status', $repeat = TRUE): Sets a translated message to display to the user, storing it in the session and returning an array with messages by type or NULL if none exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d52f6f50fe", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.install/function/node_update_7016/7.x", "instruction": "What changes does the node_update_7016 update apply to the history table in Drupal 7?", "context": "", "response": "function node_update_7016(): Changes the nid column of the history table to unsigned integer, removes its primary key and index, and re-adds them to match {node}.nid.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d545935e9d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.field.inc/function/image_field_widget_form/7.x", "instruction": "What does the image_field_widget_form function do in Drupal 7?", "context": "", "response": "function image_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element): Implements hook_field_widget_form() for image fields, adds image resolution and extension validation, and attaches image_field_widget_process to each widget element.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d5559e1dd6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21actions.inc/function/actions_load/7.x", "instruction": "How does the actions_load function retrieve a specific action from the database in Drupal?", "context": "", "response": "function actions_load($aid): Executes an SQL query to select the row from the actions table corresponding to the provided ID and returns the fields aid, type, callback, parameters, and label as an object.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d561a0a7de", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7021/7.x", "instruction": "What does the system_update_7021 function do in Drupal?", "context": "", "response": "function system_update_7021(): Changes the role permission to use PHP in configuration.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d5635b8bb7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.admin.inc/function/locale_languages_delete_form_submit/7.x", "instruction": "What does the locale_languages_delete_form_submit($form, &$form_state) function do in Drupal?", "context": "", "response": "function locale_languages_delete_form_submit($form, &$form_state): Processes the deletion of a language in the form submit handler.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d56f800c72", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/constant/REQUIREMENT_INFO/7.x", "instruction": "What does the REQUIREMENT_INFO constant mean and what is it used for in Drupal 7?", "context": "", "response": "define('REQUIREMENT_INFO', -1);: Defines the severity of a requirement as an informational message only, not a warning or error.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-d5743b9c3d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.api.php/function/callback_filter_settings/7.x", "instruction": "What does the callback_filter_settings($form, &$form_state, $filter, $format, $defaults, $filters) function do in Drupal 7?", "context": "", "response": "function callback_filter_settings($form, &$form_state, $filter, $format, $defaults, $filters): Returns the form elements that define the filter settings for the specified format.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d58de55824", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_block_info/7.x", "instruction": "What does the locale_block_info function do in Drupal 7?", "context": "", "response": "function locale_block_info(): Implements hook_block_info() returning a language switcher block for each configurable language type, without cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d58fa2a1d9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/_menu_load_objects/7.x", "instruction": "How does Drupal load objects defined in $item['load_functions'] when processing a menu item via the _menu_load_objects function?", "context": "", "response": "function _menu_load_objects(&$item, &$map): Loads the objects specified in the load_functions array of the menu item and places them in the argument map, setting $item['access'] to FALSE on failure.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d5afa0c5d2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_node_search_result/7.x", "instruction": "What does the hook_node_search_result($node) function do in Drupal 7?", "context": "", "response": "function hook_node_search_result($node): Acts on a node displayed as a search result, returning additional information for the listing.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d5b6122197", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.pages.inc/function/template_preprocess_aggregator_wrapper/7.x", "instruction": "What does the template_preprocess_aggregator_wrapper function do in Drupal?", "context": "", "response": "function template_preprocess_aggregator_wrapper(&$variables): Adds the pager to the aggregator wrapper variables.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d5c3c0b2ca", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21announcements_feed%21announcements_feed.module/constant/ANNOUNCEMENTS_FEED_DEFAULT_MAX_AGE/7.x", "instruction": "What is the value and purpose of the ANNOUNCEMENTS_FEED_DEFAULT_MAX_AGE constant in Drupal 7?", "context": "", "response": "define('ANNOUNCEMENTS_FEED_DEFAULT_MAX_AGE', 86400);: Defines the default maximum age (in seconds) of cached feed data, used by announcements_feed_fetch to decide whether to serve cached data or fetch remotely.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-d5e2c4f233", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/constant/EMAIL_MAX_LENGTH/7.x", "instruction": "What is the maximum allowed length for the user email field defined by the EMAIL_MAX_LENGTH constant in Drupal 7?", "context": "", "response": "define('EMAIL_MAX_LENGTH', 254);: Sets the maximum length of the user email text field to 254 characters.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-d5eabac9b8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21options%21options.module/function/_options_storage_to_form/7.x", "instruction": "What does the _options_storage_to_form($items, $options, $column, $properties) function do in Drupal 7?", "context": "", "response": "function _options_storage_to_form($items, $options, $column, $properties): Transforms stored field values into the format required by widgets.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d628e8a8e9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_json_decode/7.x", "instruction": "What does the drupal_json_decode function do in Drupal 7?", "context": "", "response": "function drupal_json_decode($var): Converts an HTML-safe JSON string to its PHP equivalent.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d66aadbf9e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/_menu_build_tree/7.x", "instruction": "What is the purpose of the _menu_build_tree function and what parameters does it accept in Drupal 7?", "context": "", "response": "function _menu_build_tree($menu_name, array $parameters = array()): Builds and returns the menu tree data, allowing subsequent manual processing before applying access control.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d66c5e485e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_node_type_update/7.x", "instruction": "What does the comment_node_type_update function do in Drupal 7?", "context": "", "response": "function comment_node_type_update($info): Renames the comment field bundle when the node type is updated and the type has changed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d682cdbcd7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dblog%21dblog.admin.inc/function/dblog_filter_form_submit/7.x", "instruction": "What does the dblog_filter_form_submit function do when processing the event log filter form submission in Drupal 7?", "context": "", "response": "function dblog_filter_form_submit($form, &$form_state): Saves the selected filters to the session or resets them depending on the action and returns the route 'admin/reports/dblog'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d691d108fd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpc.inc/function/xmlrpc_date_get_xml/7.x", "instruction": "What does the xmlrpc_date_get_xml function do in Drupal?", "context": "", "response": "function xmlrpc_date_get_xml($xmlrpc_date): Converts an XML-RPC date and time object into an XML string representing it.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d694a46a1e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.pages.inc/function/user_pass_submit/7.x", "instruction": "What does the user_pass_submit function do in Drupal to process password reset requests?", "context": "", "response": "function user_pass_submit($form, &$form_state): The submission handler for the password reset form that, if the account is valid, sends instructions by email, logs the activity in watchdog, and displays a confirmation message to the user; if the account is not valid, logs a notice in watchdog and displays a generic message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d69661f412", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21theme.api.php/function/hook_themes_disabled/7.x", "instruction": "What does the hook_themes_disabled($theme_list) hook do in Drupal 7 and when does it execute?", "context": "", "response": "function hook_themes_disabled($theme_list): Called when one or more themes are disabled and allows performing actions, such as clearing the update module cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d6be4e5200", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_link_load/7.x", "instruction": "How to get a book menu link from its menu link ID in Drupal 7?", "context": "", "response": "function book_link_load($mlid): Gets the corresponding book menu link from the menu link ID, adding data from the {book} table and translating it for rendering.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d6c20f48dd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_entity_delete/7.x", "instruction": "How is the hook_entity_delete($entity, $type) function implemented in Drupal 7?", "context": "", "response": "function hook_entity_delete($entity, $type): Performs actions when an entity is deleted, such as deleting its record from the entity table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d6cfd4ef1f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/function/_block_load_blocks/7.x", "instruction": "What does the _block_load_blocks function do in Drupal?", "context": "", "response": "function _block_load_blocks(): loads block information from the database and returns an array grouped by region.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d71318ea62", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_node_prepare/7.x", "instruction": "What does the book_node_prepare function do in Drupal?", "context": "", "response": "function book_node_prepare($node): Implements hook_node_prepare to set default book node values, handle child page links, and calculate the parent depth limit.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d752f54e22", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21help%21help.admin.inc/function/help_page/7.x", "instruction": "How does the help_page function generate the help page for a module in Drupal 7?", "context": "", "response": "function help_page($name): prints a general help page for a module, invoking its hook help and displaying associated admin pages if they exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d75d60125a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpcs.inc/function/xmlrpc_server_call/7.x", "instruction": "How is the xmlrpc_server_call function used in Drupal 7 to send an XML-RPC request and get its result?", "context": "", "response": "function xmlrpc_server_call($xmlrpc_server, $methodname, $args): Sends an XML-RPC request with the specified parameters to the appropriate handler, validating the signature and calling the associated Drupal function.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d7657b7048", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.admin.inc/function/profile_admin_overview_submit/7.x", "instruction": "What does the profile_admin_overview_submit($form, &$form_state) function do in Drupal?", "context": "", "response": "function profile_admin_overview_submit($form, &$form_state): Updates the weights and categories of modified profile fields and displays a confirmation message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d77f7fef20", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7055/7.x", "instruction": "What does the system_update_7055 function do in Drupal 7 and what fields does it convert from text to blob?", "context": "", "response": "function system_update_7055(): Converts fields that store serialized variables from text to blob.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d783279806", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/_batch_queue/7.x", "instruction": "What does the _batch_queue($batch_set) function do in Drupal?", "context": "", "response": "function _batch_queue($batch_set): Returns a queue object for the batch set.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d784216a26", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/function/drupal_get_database_types/7.x", "instruction": "What does the drupal_get_database_types function return in Drupal 7 and how does it determine which database drivers to include?", "context": "", "response": "function drupal_get_database_types(): returns an array of compatible database installer objects compiled in PHP, sorting mysql first.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d786627856", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_node_validate/7.x", "instruction": "What does the hook_node_validate function do in Drupal?", "context": "", "response": "function hook_node_validate($node, $form, &$form_state): Performs validations on a node before it is created or updated.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d789acdb50", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.inc/function/_openid_math_div/7.x", "instruction": "What does the function _openid_math_div($x, $y) do in Drupal 7?", "context": "", "response": "function _openid_math_div($x, $y): calls the division function of the math library available for OpenID.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d79bfd763d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_options_flatten/7.x", "instruction": "In Drupal 7, how to flatten a form options array to process select elements with duplicate values?", "context": "", "response": "function form_options_flatten($array): flattens a hierarchical form options array into a simple array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d7af7b3ca7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21overlay%21overlay.module/function/overlay_library/7.x", "instruction": "What does the overlay_library function do in Drupal 7 and what libraries does it register?", "context": "", "response": "function overlay_library(): Implements hook_library() and registers the 'parent' and 'child' libraries of the overlay module, with their JS, CSS files and dependencies.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d7b41af4c1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21ajax.inc/function/ajax_command_append/7.x", "instruction": "What does the ajax_command_append method do in Drupal to create insert/append Ajax commands?", "context": "", "response": "function ajax_command_append($selector, $html, $settings = NULL): Creates an insert/append Ajax command that instructs the client to use jQuery's append() method and add the given HTML content inside each element matching the provided selector.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d7bd88998d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21blog%21blog.module/function/blog_node_view/7.x", "instruction": "What does the blog_node_view function do in relation to hook_node_view in Drupal?", "context": "", "response": "function blog_node_view($node, $view_mode): Implements hook_node_view and handles blog node display by checking the node type and arguments.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d7be2eceb7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_goto_action/7.x", "instruction": "What does the system_goto_action function do in Drupal 7?", "context": "", "response": "function system_goto_action($entity, $context): redirects to the URL specified in $context['url'] after applying token_replace, ignoring the $entity parameter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d7cd71b2ae", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.module/constant/PROFILE_PUBLIC_LISTINGS/7.x", "instruction": "What value and purpose does the PROFILE_PUBLIC_LISTINGS constant have in the profile module of Drupal 7?", "context": "", "response": "define('PROFILE_PUBLIC_LISTINGS', 3);: defines the value 3 to indicate a public field that is displayed both on the user profile page and on member listing pages.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-d7d93a8b99", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/external_documentation%21developer%21globals.php/global/installed_profile/7.x", "instruction": "What is the global variable $installed_profile used for in Drupal 7?", "context": "", "response": "global $installed_profile;: stores the name of the installation profile that was just installed.", "tags": ["api-reference", "global"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d81612e578", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7066/7.x", "instruction": "What does the function system_update_7066 do in Drupal?", "context": "", "response": "function system_update_7066(): This function migrates the 'file_directory_temp' variable by assigning it to the new temporary path and removing the original variable.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d82740029d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/function/drupal_current_script_url/7.x", "instruction": "What does the function drupal_current_script_url do in Drupal?", "context": "", "response": "function drupal_current_script_url($query = array()): Returns the URL of the current script with query parameters modified by those passed as arguments.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d8596f2003", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.admin.inc/function/aggregator_form_opml/7.x", "instruction": "How is the form for importing feeds from OPML built in the Aggregator module of Drupal 7?", "context": "", "response": "function aggregator_form_opml($form, &$form_state): Builds the form that allows uploading an OPML file or entering a remote URL, configuring the update interval, the number of news items in the block, and optionally categorizing the imported news.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d863dfbb2f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/theme_system_modules_uninstall/7.x", "instruction": "What does the function theme_system_modules_uninstall do in Drupal?", "context": "", "response": "function theme_system_modules_uninstall($variables): Returns HTML for a table showing the currently disabled system modules.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d866679986", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/_filter_url_parse_email_links/7.x", "instruction": "What does the function _filter_url_parse_email_links do when used as a preg_replace_callback inside _filter_url() in Drupal 7?", "context": "", "response": "function _filter_url_parse_email_links($match): Converts a regular expression match containing an email address into a mailto link, decoding entities and applying check_plain to the text and href attribute.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d871e09b1a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_load_by_name/7.x", "instruction": "What does the function user_load_by_name do in Drupal 7 and how is it used to load a user by name?", "context": "", "response": "function user_load_by_name($name): Loads and returns a fully loaded user object whose name matches the given one, or FALSE if it does not exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d8781dd33b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_expression_extract/7.x", "instruction": "What does the method search_expression_extract do to extract specific module search options from a search expression in Drupal?", "context": "", "response": "function search_expression_extract($expression, $option): The method extracts a specific search option from a search expression and returns the previously stored value for that option.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d881d42183", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.info.inc/function/field_info_fields/7.x", "instruction": "What does the field_info_fields() function return and how is it used in Drupal 7?", "context": "", "response": "function field_info_fields(): Returns an array of all field definitions, indexed by field name, with each field including the 'bundles' property listing the bundles it belongs to.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d8a4d5d800", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.admin.inc/function/user_admin_account_validate/7.x", "instruction": "What does the user_admin_account_validate method do in the user.admin.inc class?", "context": "", "response": "function user_admin_account_validate($form, &$form_state): It is a form validation handler for the user_admin_account() form. Filters accounts and displays an error if no users are selected.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d8af97dde0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/_system_sort_requirements/7.x", "instruction": "How does the _system_sort_requirements function sort requirements in the Drupal 7 site status report?", "context": "", "response": "function _system_sort_requirements($a, $b): Compares two requirement items by their weight, and if equal, by their title alphabetically.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d8bf2d140d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_tablesort_indicator/7.x", "instruction": "What does the theme_tablesort_indicator function return in Drupal 7 and how is the icon to display determined?", "context": "", "response": "function theme_tablesort_indicator($variables): Returns the HTML for a sort icon (ascending or descending arrow) based on the value of $variables['style'].", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d8bfe95646", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_options_list/7.x", "instruction": "What does the taxonomy_options_list function do in Drupal 7 and how does it implement hook_options_list?", "context": "", "response": "function taxonomy_options_list($field, $instance, $entity_type, $entity): Returns the list of allowed options for a taxonomy field by calling the callback defined in the configuration or taxonomy_allowed_values by default.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d8c33d5204", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_term_uri/7.x", "instruction": "What does the taxonomy_term_uri method do in the taxonomy_entity_info class?", "context": "", "response": "function taxonomy_term_uri($term): Implements callback_entity_info_uri() and returns an array with the 'taxonomy/term/' path constructed using the term's TID.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d8cc539cfd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/image_file_download/7.x", "instruction": "What does the image_file_download function do in Drupal 7?", "context": "", "response": "function image_file_download($uri): Implements hook_file_download() and verifies that the file exists and is an image before returning metadata.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d8dafb780f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/_filter_autop_tips/7.x", "instruction": "What does the _filter_autop_tips function do in the Drupal 7 filter module?", "context": "", "response": "function _filter_autop_tips($filter, $format, $long = FALSE): Returns help text for the autoparagraph filter, showing a brief or extended description depending on the $long parameter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d8e60439bc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.queue.inc/class/SystemQueue/7.x", "instruction": "How does the claimItem method of the SystemQueue class in Drupal 7 work to claim a queue item with a lease time?", "context": "", "response": "public function claimItem($lease_time = 30): claims a queue item by updating its expire field with the current time plus lease_time, using a loop that retries until achieving atomic update or confirming no items are available.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-d8f01142e8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/filter_list_format/7.x", "instruction": "How to get the list of filters associated with a text format by its ID in Drupal 7?", "context": "", "response": "function filter_list_format($format_id): Returns an array of filter objects associated with the specified text format, regardless of whether they are enabled or disabled.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d9043bd63e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_write_record/7.x", "instruction": "What is the signature of the drupal_write_record function in Drupal 7 and what does it do?", "context": "", "response": "function drupal_write_record($table, &$record, $primary_keys = array()): Saves (inserts or updates) a record in the database based on the defined schema.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d914a54542", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_mail_alter/7.x", "instruction": "How is the $message array modified inside the hook_mail_alter function?", "context": "", "response": "function hook_mail_alter(&$message): Allows modifying the content, headers, and parameters of the email message generated by drupal_mail().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d923eae248", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_stream_wrappers/7.x", "instruction": "What does the system_stream_wrappers function return in Drupal 7 and what stream wrappers does it register?", "context": "", "response": "function system_stream_wrappers(): Implements hook_stream_wrappers() registering public, temporary, and if file_private_path is defined, private wrappers, returning an array with their configurations.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d92efd64eb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.admin.inc/function/taxonomy_form_vocabulary_validate/7.x", "instruction": "What does the taxonomy_form_vocabulary_validate function do in Drupal 7 when validating the vocabulary edit form?", "context": "", "response": "function taxonomy_form_vocabulary_validate($form, &$form_state): Checks that the vocabulary machine name is not in the list of reserved names ('add', 'list') and sets a form error if it is.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d9302417f6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21actions.inc/function/actions_save/7.x", "instruction": "What does the actions_save function do in Drupal?", "context": "", "response": "function actions_save($function, $type, $params, $label, $aid = NULL): Saves an action and its user-provided parameter values to the database.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d934449228", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21list%21list.module/function/list_field_widget_info_alter/7.x", "instruction": "What does the list_field_widget_info_alter function do in relation to hook_field_widget_info_alter?", "context": "", "response": "function list_field_widget_info_alter(&$info): adds the field types of each widget to the info array modifying the widget structure.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d93b80c382", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_load_multiple/7.x", "instruction": "What does the comment_load_multiple function do and what are its parameters in Drupal 7?", "context": "", "response": "function comment_load_multiple($cids = array(), $conditions = array(), $reset = FALSE): Loads comments from the database and returns an array of comment objects indexed by their ID.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d93fd1ab0c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.admin.inc/function/theme_filter_admin_overview/7.x", "instruction": "How is the HTML generated for the text format administration overview form in Drupal 7?", "context": "", "response": "function theme_filter_admin_overview($variables): Returns the HTML of the text format administration overview form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d949b88199", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/drupal_unlink/7.x", "instruction": "What does the drupal_unlink function do in Drupal 7 and why does it wrap unlink()?", "context": "", "response": "function drupal_unlink($uri, $context = NULL): Deletes a file by adjusting permissions on Windows when it has the read-only flag, and calls unlink() passing an optional stream context.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d94ff6a570", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_comment_update/7.x", "instruction": "What does the forum_comment_update function in the forum module do in Drupal 7 when implementing hook_comment_update()?", "context": "", "response": "function forum_comment_update($comment): Checks if the comment is not published and updates the corresponding forum index, since the Comment module does not call hook_comment_unpublish() when saving individual comments.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d9597be594", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.install/function/book_schema/7.x", "instruction": "What does the book_schema() function define in the book module of Drupal 7?", "context": "", "response": "function book_schema(): Implements hook_schema() defining the structure of the book table that connects each node of the schema with a {menu_links} link.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d95ca97ade", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21errors.inc/function/_drupal_log_error/7.x", "instruction": "What is the purpose of the _drupal_log_error function and how does it handle fatal versus non-fatal errors in Drupal 7?", "context": "", "response": "function _drupal_log_error($error, $fatal = FALSE): Logs a PHP error or exception and displays an error page when the error is fatal.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d966921fb3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.admin.inc/function/menu_configure/7.x", "instruction": "What does the menu_configure function build in Drupal 7 and what menu configuration options does it present in its form?", "context": "", "response": "function menu_configure(): Builds the menu options configuration form with selectors for primary and secondary links.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d96a60292c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.module/function/openid_begin/7.x", "instruction": "What steps does the openid_begin function perform to start the OpenID authentication process in Drupal 7?", "context": "", "response": "function openid_begin($claimed_id, $return_to = '', $form_values = array()): Performs discovery, optional association, creates the authentication request, and redirects to the OpenID provider.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d97a77b752", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_html_tag/7.x", "instruction": "What does the theme_html_tag function do in Drupal 7?", "context": "", "response": "function theme_html_tag($variables): returns the HTML of a generic tag with its attributes from the $variables array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d981355ca3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.install/function/block_update_7009/7.x", "instruction": "What does the block_update_7009 function update in Drupal 7?", "context": "", "response": "function block_update_7009(): increases the length of the title field in the block table to 255 characters.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d984c6746d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_storage_details/7.x", "instruction": "What does hook_field_storage_details($field) return and how is the storage details array structured in Drupal 7?", "context": "", "response": "function hook_field_storage_details($field): returns an array with the field's internal storage details, grouped by storage type (sql, solr, etc.) and by value age (FIELD_LOAD_CURRENT or FIELD_LOAD_REVISION).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d98c2c0614", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.admin.inc/function/menu_edit_item/7.x", "instruction": "How is the menu link edit form generated via the menu_edit_item function in Drupal 7?", "context": "", "response": "function menu_edit_item($form, &$form_state, $type, $item, $menu): Builds the form for editing a menu link, initializing default values if it is a new element or loading the existing data.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d996d0a6e8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.module/function/field_sync_field_status/7.x", "instruction": "What does the field_sync_field_status function do in Drupal 7?", "context": "", "response": "function field_sync_field_status(): refreshes the 'active' and 'storage_active' columns of fields according to the current set of enabled modules, deactivating those that belong to modules that are no longer installed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d9a3e4fbd7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/function/st/7.x", "instruction": "What does the st() function do in Drupal 7 and in what situations is it used during installation?", "context": "", "response": "function st($string, array $args = array(), array $options = array()): Translates a string when some systems are not available, used during the installation process when the database, theme, and localization system may not yet be available.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d9ab2b1cac", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_get_suggestions/7.x", "instruction": "What parameters and behavior does the theme_get_suggestions($args, $base, $delimiter = '__') function have in Drupal 7?", "context": "", "response": "function theme_get_suggestions($args, $base, $delimiter = '__'): Generates an array of theme suggestions from route arguments.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d9bcabada5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/external_documentation%21developer%21globals.php/global/forum_topic_list_header/7.x", "instruction": "What does the global variable $forum_topic_list_header contain in Drupal 7?", "context": "", "response": "global $forum_topic_list_header;: It is an array with the header information for forum topics.", "tags": ["api-reference", "global"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d9bcec9013", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_directory_temp/7.x", "instruction": "What system temporary directory path does the function file_directory_temp() return?", "context": "", "response": "function file_directory_temp(): Gets the appropriate temporary directory path for the system.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d9c3e94c35", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.core.inc/function/install_find_locales/7.x", "instruction": "What locales are found by the function install_find_locales($profilename) in Drupal 7?", "context": "", "response": "function install_find_locales($profilename): finds all .po files of the specified profile", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d9ccdc36fd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21path%21path.api.php/function/hook_path_insert/7.x", "instruction": "What is the purpose of the hook_path_insert function in Drupal 7?", "context": "", "response": "function hook_path_insert($path): allows modules to react when a new path alias is inserted into the system.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-d9dfeb0709", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.install/function/comment_update_7008/7.x", "instruction": "What does the function comment_update_7008 do in the comment module of Drupal 7?", "context": "", "response": "function comment_update_7008(): updates the database to align it with the Drupal 7 schema, changing the default value of the status field to 1 and rereading the indexes of the comment table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-da126cf65a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_date_format_locale/7.x", "instruction": "What does the function system_date_format_locale($langcode = NULL, $type = NULL) do in Drupal 7?", "context": "", "response": "function system_date_format_locale($langcode = NULL, $type = NULL): Gets the date format corresponding to the specified type and locale.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-da378f09d8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_base64_encode/7.x", "instruction": "What does the drupal_base64_encode function do in Drupal 7 and what is its signature?", "context": "", "response": "function drupal_base64_encode($string): returns a URL-safe base64 encoded string from the provided string.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-da636a7549", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_submit/7.x", "instruction": "What does the function node_submit($node) do in Drupal 7?", "context": "", "response": "function node_submit($node): Prepares the node for saving by setting the author and creation date.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-da758d7ea8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.manager.inc/function/update_manager_update_form/7.x", "instruction": "What does the update_manager_update_form form constructor do in the Update Manager module of Drupal 7?", "context": "", "response": "function update_manager_update_form($form, $form_state, $context): builds a form that displays a table with all projects that have available updates, with checkboxes to select which ones to update.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-da7db28a84", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.admin.inc/function/profile_field_form_validate/7.x", "instruction": "What does the profile_field_form_validate function do in Drupal 7?", "context": "", "response": "function profile_field_form_validate($form, &$form_state): validates the profile field form submission, checking that the name, category, and title are valid and unique, and that hidden fields are not required or visible in registration.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-da9f65d5d8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21content_types.inc/function/theme_node_admin_overview/7.x", "instruction": "What HTML output does the theme_node_admin_overview($variables) function produce in Drupal 7?", "context": "", "response": "function theme_node_admin_overview($variables): Generates HTML that describes the node type for the content type administration page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-daa753934f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_language_types_info/7.x", "instruction": "What language types and their settings does the locale_language_types_info() function return?", "context": "", "response": "function locale_language_types_info(): Defines the three language types (interface, content, and URL) and their detection rules in Drupal 7.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-daafaf0e5e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/template_preprocess_poll_bar/7.x", "instruction": "What does the template_preprocess_poll_bar function from the poll module do in Drupal 7?", "context": "", "response": "function template_preprocess_poll_bar(&$variables): Preprocesses the poll_bar theme, adding hook suggestions for blocks, sanitizing the title, and calculating the vote percentage.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dabcdf1788", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/_theme_process_registry/7.x", "instruction": "What does the _theme_process_registry function do and what is its purpose in the theme registry building process in Drupal 7?", "context": "", "response": "function _theme_process_registry(&$cache, $name, $type, $theme, $path): Processes a single hook_theme() implementation and incorporates it into the theme registry.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dac70b842d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/template_preprocess_book_navigation/7.x", "instruction": "What does the template_preprocess_book_navigation function do in Drupal 7 when processing variables for the book-navigation.tpl.php template?", "context": "", "response": "function template_preprocess_book_navigation(&$variables): Prepares variables for the book-navigation.tpl.php template, assigning values such as book_id, book_title, book_url, prev/next/parent navigation links, and the has_links flag.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dad1bdb0d1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.module/function/_profile_update_user_fields/7.x", "instruction": "What does the _profile_update_user_fields($fields, $account) function do in Drupal 7?", "context": "", "response": "function _profile_update_user_fields($fields, $account): Updates an array of user fields by assigning the value processed by profile_view_field.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dadc8c1058", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/drupal_mkdir/7.x", "instruction": "What does the drupal_mkdir function do in Drupal 7 and how does it allow creating a directory and its missing components optionally recursively?", "context": "", "response": "function drupal_mkdir($uri, $mode = NULL, $recursive = FALSE, $context = NULL): Creates a directory, optionally creating missing path components and explicitly setting the mode to override the process umask.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dafae27126", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_date_format_types/7.x", "instruction": "How is hook_date_format_types() implemented to define additional date types in Drupal 7?", "context": "", "response": "function hook_date_format_types(): Defines an array where keys are machine-readable names and values are human-readable labels for additional date types.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-db1bd40a13", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/constant/COMMENT_FORM_SEPARATE_PAGE/7.x", "instruction": "What does the constant COMMENT_FORM_SEPARATE_PAGE indicate in Drupal 7?", "context": "", "response": "define('COMMENT_FORM_SEPARATE_PAGE', 0);: Indicates that the comment form should be displayed on a separate page.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-db24d33bd4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7004/7.x", "instruction": "What does the function system_update_7004 do during the update from Drupal 6.x to 7.x?", "context": "", "response": "function system_update_7004(&$sandbox): removes hardcoded numeric deltas from all core blocks, renaming them and moving some between modules using mapping arrays.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-db3bd660c1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.api.php/function/hook_block_list_alter/7.x", "instruction": "How does hook_block_list_alter allow manipulating the block list before rendering in Drupal 7?", "context": "", "response": "function hook_block_list_alter(&$blocks): allows adding, removing, or modifying blocks in the block definitions list and, if $block->content is set, overrides the block content and prevents hook_block_view() from running.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-db48a39bca", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.field.inc/function/image_field_widget_info/7.x", "instruction": "What does the function image_field_widget_info return in the Image module of Drupal 7?", "context": "", "response": "function image_field_widget_info(): Returns the 'image_image' widget definition for image fields, including label, field types, progress indicator settings and preview style, and behaviors for multiple values and default value.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-db51f7208c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21announcements_feed%21announcements_feed.module/constant/ANNOUNCEMENTS_FEED_DEFAULT_CRON_INTERVAL/7.x", "instruction": "What is the value of the constant ANNOUNCEMENTS_FEED_DEFAULT_CRON_INTERVAL and what is it used for in the Announcements Feed module?", "context": "", "response": "define('ANNOUNCEMENTS_FEED_DEFAULT_CRON_INTERVAL', 21600);: Defines the default cron interval in seconds (21600) for updating feed data.", "tags": ["api-reference", "constant"], "created_at": "2026-09-29"}
{"id": "doc-drupal7-db523e29d9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.field.inc/function/image_field_is_empty/7.x", "instruction": "What does the function image_field_is_empty do in Drupal 7?", "context": "", "response": "function image_field_is_empty($item, $field): Implements hook_field_is_empty by delegating the empty field check to file_field_is_empty.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-db5421948e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_block_info/7.x", "instruction": "What does the function poll_block_info do in Drupal 7?", "context": "", "response": "function poll_block_info(): registers the recent poll info block and sets its administrative property", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-db56bf1456", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/hide/7.x", "instruction": "What does the hide function do in Drupal 7 and when should it be called to take effect?", "context": "", "response": "function hide(&$element): Sets the element's #printed = TRUE so render() or drupal_render() skip it in subsequent renders, but only works if called before the parent tree is rendered for the first time.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-db57bf4000", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_entity_load/7.x", "instruction": "How is hook_entity_load used in Drupal 7 to act on entities when they are loaded through the Entity API?", "context": "", "response": "function hook_entity_load($entities, $type): It is a generic hook invoked for all entity types loaded via the entity API, receiving the entities indexed by ID and their type (node, user, comment) to allow modifications such as adding custom properties.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-db6ed6ee6b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.module/function/field_ui_help/7.x", "instruction": "What does the field_ui_help function do in Drupal 7's Field UI module?", "context": "", "response": "function field_ui_help($path, $arg): Implements hook_help() and returns the help text for the Field UI module, explaining its use and administration.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-db83b1a050", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.core.inc/function/_install_module_batch/7.x", "instruction": "What does the _install_module_batch function do when executed as a batch operation during profile installation in Drupal 7?", "context": "", "response": "function _install_module_batch($module, $module_name, &$context): Installs and enables the indicated module so it is available in subsequent batch requests, and registers the result and a status message in the context.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-db858fd90f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21session.inc/function/drupal_session_start/7.x", "instruction": "How to forcefully start a session preserving already established session data in Drupal 7?", "context": "", "response": "function drupal_session_start(): Forcefully starts a session, preserving already established session data.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-db869c894e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.install/function/user_update_7011/7.x", "instruction": "Why is the user_update_7011 function empty in Drupal 7?", "context": "", "response": "function user_update_7011(): It is an empty placeholder function because user_update_7017 now handles updating email templates to the new tokens.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-db9cea4630", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21update.inc/function/update_finished/7.x", "instruction": "What does the update_finished function do in Drupal 7 when finishing a batch update process?", "context": "", "response": "function update_finished($success, $results, $operations): Finishes the update process, clears all caches, saves the results in the session, and brings the site back online if it was in maintenance mode.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dba9060397", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_page_footer/7.x", "instruction": "What does the drupal_page_footer() function do in Drupal 7?", "context": "", "response": "function drupal_page_footer(): Performs end-of-request tasks by setting page cache if appropriate and allows modules to react to page closure by calling hook_exit().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dbdd45ccfe", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_storage_info/7.x", "instruction": "What should the implementation of hook_field_storage_info return to register a field API storage backend in Drupal 7?", "context": "", "response": "function hook_field_storage_info(): Returns an array describing field storage backends, with their labels, descriptions, and default settings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dbe168843e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21module.inc/function/system_list/7.x", "instruction": "How to get a list of enabled modules, themes, or bootstrap modules in Drupal 7 using the system_list function?", "context": "", "response": "function system_list($type): Builds a list of bootstrap modules and enabled modules and themes based on the requested type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dbec26864d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/external_documentation%21developer%21globals.php/global/update_free_access/7.x", "instruction": "What does the global variable $update_free_access do in Drupal 7?", "context": "", "response": "global $update_free_access;: Allows the update.php script to run without being logged in as an administrator.", "tags": ["api-reference", "global"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dbf328d267", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_sort_themes/7.x", "instruction": "How does the system_sort_themes function sort themes in Drupal 7?", "context": "", "response": "function system_sort_themes($a, $b): Sorts themes by name, placing the default theme first, and uses case-insensitive string comparison for the rest.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dc1dd93544", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_element_info_alter/7.x", "instruction": "How does a module implement the hook_element_info_alter hook in Drupal to change the default values of element types?", "context": "", "response": "function hook_element_info_alter(&$type): Allows a module to alter the information of element types collected by hook_element_info(), modifying their default properties such as text field size.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dc2bd767a0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/constant/NODE_PROMOTED/7.x", "instruction": "What value does the constant NODE_PROMOTED have in Drupal 7?", "context": "", "response": "define('NODE_PROMOTED', 1);: defines the value 1 to indicate that a node is promoted to the front page.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-dc572d7cde", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/function/drupal_requirements_severity/7.x", "instruction": "How to get the highest severity level from a requirements array in Drupal using the drupal_requirements_severity function?", "context": "", "response": "function drupal_requirements_severity(&$requirements): returns the highest severity value found in the provided requirements array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dc73419a76", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/themes%21bartik%21template.php/function/bartik_process_page/7.x", "instruction": "What does the bartik_process_page(&$variables) function do in the Bartik theme of Drupal 7?", "context": "", "response": "function bartik_process_page(&$variables): Adds or modifies page template variables, such as hide_site_name, hide_site_slogan, site_name, and site_slogan, and wraps the title in a div for shortcut access.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dc851d111a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_http_build_query/7.x", "instruction": "What does the drupal_http_build_query function do and how does it differ from PHP's http_build_query in Drupal 7?", "context": "", "response": "function drupal_http_build_query(array $query, $parent = ''): Converts an array into a rawurlencoded query string, using rawurlencode instead of urlencode, and processes nested arrays recursively.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dc91ed35f0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/_drupal_bootstrap_full/7.x", "instruction": "What does the _drupal_bootstrap_full function do in Drupal 7?", "context": "", "response": "function _drupal_bootstrap_full(): Performs full Drupal bootstrap by loading necessary includes, initializing all enabled modules, setting up the theme, registering stream wrappers, and invoking hook_init.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dca53330a3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_node_delete/7.x", "instruction": "What does the taxonomy_node_delete($node) function do in Drupal?", "context": "", "response": "function taxonomy_node_delete($node): Implements hook_node_delete and removes the taxonomy index from the deleted node.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dca6264473", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.admin.inc/function/filter_admin_format_form_submit/7.x", "instruction": "What does the filter_admin_format_form_submit function do when processing the text format administration form submission in Drupal 7?", "context": "", "response": "function filter_admin_format_form_submit($form, &$form_state): Cleans form values, saves the text format, updates user permissions based on roles, and displays a status message indicating whether the format was added or updated.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dcabee5f07", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_cron_queue_info/7.x", "instruction": "How are queues for periodic tasks declared using hook_cron_queue_info in Drupal 7?", "context": "", "response": "function hook_cron_queue_info(): Declares queues containing elements that must be executed periodically, returning an associative array where each key is the queue name and its value defines the worker callback, maximum execution time, and whether to skip in cron.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dcba3cab63", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21field_sql_storage%21field_sql_storage.module/function/_field_sql_storage_write_compare_filter_callback/7.x", "instruction": "What does the _field_sql_storage_write_compare_filter_callback function do in field SQL storage in Drupal 7?", "context": "", "response": "function _field_sql_storage_write_compare_filter_callback($value): Filters field values by removing nulls and empty strings for subsequent comparisons.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dcfd8478aa", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_view_multiple/7.x", "instruction": "How is a renderable array built from several loaded nodes using node_view_multiple in Drupal 7?", "context": "", "response": "function node_view_multiple($nodes, $view_mode = 'teaser', $weight = 0, $langcode = NULL): Builds a drupal_render()-style array from an array of loaded nodes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dcff487c22", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_flush_all_caches/7.x", "instruction": "What does the drupal_flush_all_caches function do in Drupal 7?", "context": "", "response": "function drupal_flush_all_caches(): Empties all cache tables, rebuilds the system registry, menus, themes, entity info, and node types, synchronizes actions, and invokes hook_flush_caches so other modules clear their cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dd2bd31791", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.pages.inc/function/user_logout_current_user/7.x", "instruction": "What does the function user_logout_current_user do in Drupal 7?", "context": "", "response": "function user_logout_current_user(): logs out the current user, records the logout in watchdog, invokes user_logout hooks, and destroys the session.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dd58d6ba07", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dblog%21dblog.admin.inc/function/dblog_clear_log_form/7.x", "instruction": "What does the function dblog_clear_log_form($form) do in Drupal 7?", "context": "", "response": "function dblog_clear_log_form($form): Builds the form that allows clearing the log messages.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dd5cf47b7e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.manager.inc/function/update_manager_batch_project_get/7.x", "instruction": "What does the function update_manager_batch_project_get do in Drupal 7?", "context": "", "response": "function update_manager_batch_project_get($project, $url, &$context): Downloads, extracts, and verifies a project from a URL using the Batch API.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dd6b4d2680", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_widget_form/7.x", "instruction": "What does hook_field_widget_form do in Drupal 7?", "context": "", "response": "function hook_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element): returns form elements for a single field widget, based on the passed element and allowing multiple invocations for multi-value fields.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dd6c3f7de7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.api.php/function/hook_image_style_delete/7.x", "instruction": "What does hook_image_style_delete do and when is it invoked in Drupal 7?", "context": "", "response": "function hook_image_style_delete($style): Allows modules to update their configuration when an image style is deleted, receiving the $style array with the current and old names.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dd91c66bf5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/function/drupal_rewrite_settings/7.x", "instruction": "What does the function drupal_rewrite_settings do in Drupal 7?", "context": "", "response": "function drupal_rewrite_settings($settings = array(), $prefix = ''): Replaces values in settings.php with values from the passed array, reading default.settings.php, updating constants and defined variables, adding missing required settings, and clearing the opcode cache after writing the file.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ddc61d62b1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.install/function/image_update_7001/7.x", "instruction": "What does the function image_update_7001 do in Drupal 7?", "context": "", "response": "function image_update_7001(): Renames the image_effect table to image_effects if the latter does not exist and the former does, fixing an error from previous versions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ddcca9dd9e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_load/7.x", "instruction": "What does the function drupal_load do in Drupal 7 and what parameters does it accept?", "context": "", "response": "function drupal_load($type, $name): includes a file of the specified type and name (theme, theme_engine, module), avoiding loading it more than once per request and returning TRUE if it was loaded successfully or was already loaded.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ddde5b1e87", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.admin.inc/function/block_admin_configure/7.x", "instruction": "What does the block_admin_configure function do in Drupal 7?", "context": "", "response": "function block_admin_configure($form, &$form_state, $module, $delta): builds the block configuration form and also uses block_add_block_form() to add a new custom block.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dde68a506a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/_poll_choice_form/7.x", "instruction": "What does the _poll_choice_form function do and how is it used to build a poll choice form in Drupal 7?", "context": "", "response": "function _poll_choice_form($key, $chid = NULL, $value = '', $votes = 0, $weight = 0, $size = 10): builds the form array for a poll choice, including text fields for the label, vote count, and weight.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ddf7b77c55", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_local_actions/7.x", "instruction": "What does the menu_local_actions() function return in Drupal 7?", "context": "", "response": "function menu_local_actions(): Returns the local actions rendered at the current level.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ddff15399e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_pre_render_conditional_form_element/7.x", "instruction": "What does the form_pre_render_conditional_form_element function do during pre-rendering of a form element in Drupal 7?", "context": "", "response": "function form_pre_render_conditional_form_element($element): Sets the element's title attribute from #title (adding required indicator if applicable) and adds the 'form_element' theme wrapper when the element has a title or description.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-de087a3440", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.admin.inc/function/forum_confirm_delete/7.x", "instruction": "What does the forum_confirm_delete function do in Drupal 7?", "context": "", "response": "function forum_confirm_delete($form, &$form_state, $tid): Builds the confirmation form for deleting a forum taxonomy term.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-de11df9183", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/_system_check_db_utf8mb4_requirements/7.x", "instruction": "What does the _system_check_db_utf8mb4_requirements function check and what does it return in Drupal 7?", "context": "", "response": "function _system_check_db_utf8mb4_requirements($phase): checks whether the requirements for 4-byte UTF-8 (utf8mb4) support are met and returns a requirements array with the charset check result.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-de45bbf0f3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_not_found/7.x", "instruction": "When should the drupal_not_found() function be called in Drupal 7?", "context": "", "response": "function drupal_not_found(): Delivers a 'page not found' error to the browser via drupal_deliver_page(MENU_NOT_FOUND), used when the MENU_NOT_FOUND return value does not bubble up to menu_execute_active_handler().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-de4aed3df0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_forms/7.x", "instruction": "How is the hook_forms($form_id, $args) function implemented to map form IDs to form builders in Drupal?", "context": "", "response": "function hook_forms($form_id, $args): Maps form IDs to functions or callbacks that generate the form array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-de66729e5a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21text%21text.module/function/text_field_widget_error/7.x", "instruction": "How does the text module implement hook_field_widget_error to handle errors in the text field widget?", "context": "", "response": "function text_field_widget_error($element, $error, $form, &$form_state): Sets the error on the text widget element, using the first or second column depending on the error type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-de68de7f71", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_get_registry/7.x", "instruction": "What does theme_get_registry return and how does the $complete parameter affect the result in Drupal 7?", "context": "", "response": "function theme_get_registry($complete = TRUE): Returns the complete theme registry as an array if $complete is TRUE, or an instance of the ThemeRegistry class (lightweight ArrayObject) if FALSE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-de8465914c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/function/block_menu/7.x", "instruction": "What admin routes does block_menu define for block management in Drupal 7?", "context": "", "response": "function block_menu(): Implements hook_menu and declares admin/structure/block routes for listing, configuring, adding, and deleting blocks, plus per-theme routes for listing and previewing blocks in each installed theme.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-deae4cfff7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.core.inc/function/install_settings_form_validate/7.x", "instruction": "How does install_settings_form_validate validate the database configuration during installation in Drupal 7?", "context": "", "response": "function install_settings_form_validate($form, &$form_state): Validates the installation configuration form by processing the selected database driver, normalizing the prefix, and checking for connection errors, setting form errors if any.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-deb0336e41", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.module/function/update_manager_access/7.x", "instruction": "How does update_manager_access determine if a user can access Drupal updater options?", "context": "", "response": "function update_manager_access(): Checks the global 'allow_authorize_operations' variable and the 'administer software updates' permission to return TRUE if the current user can access updater menu items.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-deb65ca71d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_add_tabledrag/7.x", "instruction": "What does drupal_add_tabledrag do and what is its signature in Drupal 7?", "context": "", "response": "function drupal_add_tabledrag($table_id, $action, $relationship, $group, $subgroup = NULL, $source = NULL, $hidden = TRUE, $limit = 0): Adds the tableDrag JavaScript behavior to a themed table to allow drag-and-drop of form elements within its rows.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-deb70c3457", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpc.inc/function/xmlrpc_message_cdata/7.x", "instruction": "What does xmlrpc_message_cdata($parser, $cdata) do in the XML-RPC module of Drupal 7?", "context": "", "response": "function xmlrpc_message_cdata($parser, $cdata): Accumulates XML-RPC message character data into the current message tag content and saves it for later processing.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dee2727a91", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21contact%21contact.module/function/_contact_personal_tab_access/7.x", "instruction": "What is the behavior of the function _contact_personal_tab_access($account) in Drupal 7 and under what conditions does it allow or deny access to a user's personal contact form?", "context": "", "response": "function _contact_personal_tab_access($account): Checks whether the current user can access the personal contact form of user $account, returning FALSE for anonymous users, TRUE for user administrators, FALSE if the user tries to contact themselves, FALSE if contact is disabled or not saved, FALSE if the user is blocked, and finally the result of user_access('access user contact forms') otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-deebcb59ca", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.install/function/aggregator_update_7003/7.x", "instruction": "What does the function aggregator_update_7003 do in Drupal 7?", "context": "", "response": "function aggregator_update_7003(): Increases the length of the url field in the aggregator_feed table, changes the link and guid fields to text type, and adds an index on the url field.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-def46d74eb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.maintenance.inc/function/_drupal_maintenance_theme/7.x", "instruction": "What does the function _drupal_maintenance_theme do when configuring the theme system for the maintenance page in Drupal 7?", "context": "", "response": "function _drupal_maintenance_theme(): Configures the theme system for the maintenance page, using Seven during installation/update and Bartik in other cases, unless overridden with the variable $conf['maintenance_theme'].", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-def51e5248", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.pages.inc/function/node_form_submit/7.x", "instruction": "What does the node_form_submit submit handler do in the Drupal 7 node form?", "context": "", "response": "function node_form_submit($form, &$form_state): Builds the node from the form, saves it with node_save, logs to watchdog, displays a creation or update message, sets redirect based on access, and clears page and block caches.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-def77a15ba", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.install/function/user_update_7007/7.x", "instruction": "What does the user_update_7007() function of the user module do in Drupal 7?", "context": "", "response": "function user_update_7007(): Adds a weight column to the role table and creates a name_weight index on name and weight.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-df0c5bce83", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_storage_purge_field/7.x", "instruction": "What does the hook hook_field_storage_purge_field do in Drupal 7?", "context": "", "response": "function hook_field_storage_purge_field($field): Removes the field's storage information when its record is purged, allowing the storage module to clean up associated data.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-df1fd34c67", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.install/function/comment_update_7007/7.x", "instruction": "What does the update function comment_update_7007 do in Drupal 7?", "context": "", "response": "function comment_update_7007(): Adds an index to the created column of the comment table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-df33c53297", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_secondary_local_tasks/7.x", "instruction": "What does the function menu_secondary_local_tasks return in Drupal 7?", "context": "", "response": "function menu_secondary_local_tasks(): It returns the rendered local tasks of the second level, showing its output only when there is more than one tab.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-df343414df", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21statistics%21statistics.module/function/statistics_title_list/7.x", "instruction": "What does the statistics_title_list function do in Drupal 7 and what parameters does it receive?", "context": "", "response": "function statistics_title_list($dbfield, $dbrows): Returns a query with the ID, title, UID, and username of the most viewed content based on the specified field (totalcount, daycount, or timestamp) or FALSE if the query fails.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-df46644f9d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/function/locale_language_from_interface/7.x", "instruction": "What does the locale_language_from_interface function return in Drupal 7?", "context": "", "response": "function locale_language_from_interface(): returns the current interface language code or FALSE if not defined.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-df5b82eade", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_file_download/7.x", "instruction": "What does the system_file_download function do in Drupal 7?", "context": "", "response": "function system_file_download($uri): implements hook_file_download() validating the URI scheme and target, blocking paths with '.' or '..' returning -1, and returning Cache-Control: public header for additional configured public schemes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-df95a43bdc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21statistics%21statistics.module/function/statistics_help/7.x", "instruction": "What does the statistics_help function of the Statistics module do in Drupal 7?", "context": "", "response": "function statistics_help($path, $arg): Returns help texts for the Statistics module routes, such as the general help page, the configuration page, and the hits, referrers, and visitors reports.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-df9c073fb6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.module/function/menu_load_all/7.x", "instruction": "What does the menu_load_all function do in Drupal 7?", "context": "", "response": "function menu_load_all(): loads all custom menus from cache or, if not cached, queries them from the database and caches them to return them as an associative array indexed by menu name.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dfb055855c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/constant/MENU_PREFERRED_LINK/7.x", "instruction": "What is the MENU_PREFERRED_LINK constant used for in Drupal 7?", "context": "", "response": "define('MENU_PREFERRED_LINK', '1cf698d64d1aa4b83907cf6ed55db3a7f8e92c91');: identifies the most specific menu link for a given route; its value is a SHA1 hash of the constant name to avoid collisions with allowed menu names and is used by menu_link_get_preferred().", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-dfb16762e3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21graph.inc/function/_drupal_depth_first_search/7.x", "instruction": "What does the _drupal_depth_first_search function do and what is its signature in Drupal 7?", "context": "", "response": "function _drupal_depth_first_search(&$graph, &$state, $start, &$component = NULL): Performs a depth-first search on a graph, marking visited vertices and updating components and traversals.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dfbb0f99a5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.admin.inc/function/locale_languages_edit_form_submit/7.x", "instruction": "What does the locale_languages_edit_form_submit function do when processing the language edit form submission in Drupal 7?", "context": "", "response": "function locale_languages_edit_form_submit($form, &$form_state): Updates the language record with the form values and, if it is the default language, updates the configuration variables before redirecting to the languages administration page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dfd1460899", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.api.php/function/hook_taxonomy_vocabulary_update/7.x", "instruction": "When and how is the hook hook_taxonomy_vocabulary_update invoked in Drupal 7?", "context": "", "response": "function hook_taxonomy_vocabulary_update($vocabulary): Invoked when updating a taxonomy vocabulary to allow modules to act on the vocabulary object.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-dfda52af4b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21number%21number.module/function/number_field_validate/7.x", "instruction": "What does the Drupal 7 function number_field_validate do and how does it validate numeric field values?", "context": "", "response": "function number_field_validate($entity_type, $entity, $field, $instance, $langcode, $items, &$errors): Iterates over field values and adds 'number_min' or 'number_max' errors when the value is outside the minimum or maximum limits defined in the settings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e0139a0e74", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_is_denied/7.x", "instruction": "How does the function drupal_is_denied check if an IP address is blocked in Drupal 7?", "context": "", "response": "function drupal_is_denied($ip): Checks the blocked_ips variable in settings.php first, and if it does not exist, queries the blocked_ips table in the database to determine whether access should be denied.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e018b5c99e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/_theme_render_template_debug/7.x", "instruction": "What does the function _theme_render_template_debug do in Drupal 7?", "context": "", "response": "function _theme_render_template_debug($template_function, $template_file, $variables, $extension): Renders a template from any engine and adds debug information if theme_debug is enabled.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e018cb5bae", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_help/7.x", "instruction": "How is the hook hook_help implemented to provide online help for a module in Drupal 7?", "context": "", "response": "function hook_help($path, $arg): Returns a localized string with the help text for the module or a specific route.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e02fd9c872", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpcs.inc/function/xmlrpc_server_method_signature/7.x", "instruction": "How to get the signature of a registered XML-RPC method in Drupal 7 using the function xmlrpc_server_method_signature?", "context": "", "response": "function xmlrpc_server_method_signature($methodname): Returns an array representing the signature (parameter types and return type) of the XML-RPC method whose name is passed in $methodname, or an error if not defined.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e031e95554", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21path.inc/function/current_path/7.x", "instruction": "What does the function current_path() do in Drupal 7 and what value does it return?", "context": "", "response": "function current_path(): Returns the current path of the URL of the page being viewed, obtained from $_GET['q'], and should be treated as untrusted user input.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e046d9d2e7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21trigger%21trigger.module/function/trigger_actions_delete/7.x", "instruction": "What does the function trigger_actions_delete do when an action is deleted in Drupal 7?", "context": "", "response": "function trigger_actions_delete($aid): Deletes all entries in the trigger_assignments table linked to the specified action and resets the static cache of assigned actions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e056c3a491", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.admin.inc/function/block_admin_display_form_submit/7.x", "instruction": "What does the block_admin_display_form_submit form submission handler do in Drupal 7?", "context": "", "response": "function block_admin_display_form_submit($form, &$form_state): updates block settings (status, weight, region) in the database within a transaction, displays a confirmation message, and clears the cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e065af0282", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.module/function/openid_openid_normalization_method_info/7.x", "instruction": "What does the hook openid_openid_normalization_method_info do in Drupal?", "context": "", "response": "function openid_openid_normalization_method_info(): Implements hook_openid_normalization_method_info() and defines standard normalization methods, returning an array with keys 'xri' and 'url' that map to their respective normalization functions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e069d13502", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_save/7.x", "instruction": "What does the comment_save function do in Drupal 7?", "context": "", "response": "function comment_save($comment): saves a new or updated comment, manages thread hierarchy, sets default values, invokes lifecycle hooks, and executes the operation within a database transaction.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e070444b89", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.manager.inc/function/_update_manager_check_backends/7.x", "instruction": "What does the _update_manager_check_backends function do in the Update Manager module of Drupal 7?", "context": "", "response": "function _update_manager_check_backends(&$form, $operation): Checks available file transfer backends and prepares a form fragment with information about them; returns TRUE if the workflow should continue or FALSE if there is a fatal configuration that stops it.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e09a244ee5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_upload_max_size/7.x", "instruction": "How does Drupal 7 determine the maximum file size that can be uploaded via the file_upload_max_size() function?", "context": "", "response": "function file_upload_max_size(): It returns the file size limit in bytes based on the PHP upload_max_filesize and post_max_size settings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e0a0119758", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/constant/MENU_CREATED_BY_ADMIN/7.x", "instruction": "What does the constant MENU_CREATED_BY_ADMIN indicate in the Drupal 7 menu system?", "context": "", "response": "define('MENU_CREATED_BY_ADMIN', 0x40);: It indicates that the menu item was created by an administrator.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-e0b3e4bc99", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.admin.inc/function/book_admin_overview/7.x", "instruction": "What does the book_admin_overview function return in Drupal 7?", "context": "", "response": "function book_admin_overview(): generates an HTML table with the list of all existing books and links to edit their order and titles.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e0c8952ef7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21color%21color.module/function/_color_rewrite_stylesheet/7.x", "instruction": "What does the _color_rewrite_stylesheet function in the Color module of Drupal 7 do when rewriting a stylesheet to match the color palette?", "context": "", "response": "function _color_rewrite_stylesheet($theme, &$info, &$paths, $palette, $style): Rewrites the stylesheet by replacing found colors with palette colors and adjusting image paths.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e0dbb23bfc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/template_preprocess_taxonomy_term/7.x", "instruction": "How does the function template_preprocess_taxonomy_term prepare variables for the taxonomy-term.tpl.php template in Drupal 7?", "context": "", "response": "function template_preprocess_taxonomy_term(&$variables): Processes variables for taxonomy-term.tpl.php by setting view_mode, term, term_url, term_name, and page, merges term fields, prepares the content variable, invokes field_attach_preprocess, and adds CSS classes and template suggestions based on vocabulary and tid.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e0dc6a0377", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_build_content/7.x", "instruction": "How is the render array for a comment built in Drupal 7 using the comment_build_content function?", "context": "", "response": "function comment_build_content($comment, $node, $view_mode = 'full', $langcode = NULL): Builds a structured array representing the comment content, including fields, attachments, and links, according to the view mode and specified language.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e0e021cb82", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.api.php/function/hook_user_flood_control/7.x", "instruction": "What does the hook_user_flood_control hook do in Drupal 7?", "context": "", "response": "function hook_user_flood_control($ip, $username = FALSE): Allows modules to respond when a failed login attempt triggers flood control, logging the event via watchdog for blocked user or blocked IP.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e0f5a31c9d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/archiver_get_extensions/7.x", "instruction": "What does the archiver_get_extensions function return in Drupal 7?", "context": "", "response": "function archiver_get_extensions(): Returns a space-separated string of file extensions supported by registered archivers, for use in file validation.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e108c507a7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.module/function/field_cache_clear/7.x", "instruction": "What does the field_cache_clear() function do in Drupal 7 and what caches does it clear?", "context": "", "response": "function field_cache_clear(): Clears all field cache and field info cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e10a986a8f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.default.inc/function/field_default_insert/7.x", "instruction": "What does the field_default_insert function do in Drupal 7 and when is it invoked?", "context": "", "response": "function field_default_insert($entity_type, $entity, $field, $instance, $langcode, &$items): Inserts the default field value if the entity has no entry for that field, which can occur in programmatic saves or form creation when the user lacks edit permission on the field.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e1207dee10", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_init/7.x", "instruction": "What does the system_init function do in Drupal 7?", "context": "", "response": "function system_init(): Implements hook_init() to add system stylesheets in the CSS_SYSTEM group, temporarily ignore database slave servers based on $_SESSION['ignore_slave_server'], and load module assets.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e124590e9b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.module/function/file_element_info/7.x", "instruction": "What does the file_element_info function do, implementing hook_element_info() in the file module of Drupal 7?", "context": "", "response": "function file_element_info(): Defines the managed_file form element with its processing, validation, rendering, and attachment properties.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e12a8a5d1f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/_menu_link_translate/7.x", "instruction": "What does the _menu_link_translate function do in Drupal 7 and what parameters does it receive?", "context": "", "response": "function _menu_link_translate(&$item, $translate = FALSE): provides access control, translation, and argument handling for menu links, similar to _menu_translate() but with specific link preparation such as always calling to_arg() functions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e12d0262a9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_file_delete/7.x", "instruction": "What does the user_file_delete method of the UserModule class do in Drupal?", "context": "", "response": "function user_file_delete($file): Implements the file_delete hook and removes file references by updating the users table to set the picture field to 0 where it matches the file's fid.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e1463a5c56", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.admin.inc/function/field_ui_field_edit_form/7.x", "instruction": "What does the field_ui_field_edit_form function do in Drupal 7 and what parameters does it receive?", "context": "", "response": "function field_ui_field_edit_form($form, &$form_state, $instance): It is the constructor of the field instance settings form, which builds the form structure to edit the field instance and field configuration.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e146f32b3f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_update_bid/7.x", "instruction": "What does the book_update_bid function do in Drupal 7 when a page is moved to a new book?", "context": "", "response": "function book_update_bid($book_link): Updates the book ID (bid) of a page and its child pages when moved to a new book.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e16c3aef84", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.install/function/update_uninstall/7.x", "instruction": "What does the update_uninstall function do when implementing hook_uninstall in Drupal 7?", "context": "", "response": "function update_uninstall(): removes the module's configuration variables and clears the task queue.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e16c493c3c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.install/function/filter_update_7010/7.x", "instruction": "What does the filter_update_7010 function update when migrating from Drupal 6 to 7?", "context": "", "response": "function filter_update_7010(): Changes the format fields in the filter_format and filter tables to varchar(255) NOT NULL.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e17cddb554", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21toolbar%21toolbar.module/function/toolbar_view/7.x", "instruction": "What does the toolbar_view() function do in Drupal?", "context": "", "response": "function toolbar_view(): Builds the admin menu as a structured array ready for drupal_render(), returning an array of links and toolbar settings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e18ffc659d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_get_custom_theme/7.x", "instruction": "What does the menu_get_custom_theme function do in Drupal 7 and how does the $initialize parameter influence it?", "context": "", "response": "function menu_get_custom_theme($initialize = FALSE): gets the custom theme name for the current page, initializing it when $initialize is TRUE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e1950c4b18", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/function/block_flush_caches/7.x", "instruction": "What does the function block_flush_caches() do when implementing hook_flush_caches() in Drupal 7?", "context": "", "response": "function block_flush_caches(): Iterates over active themes, calls _block_rehash for each one, and returns the 'cache_block' cache so Drupal clears it.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e1b15ed873", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21help%21help.module/function/help_help/7.x", "instruction": "What does the function help_help return in Drupal 7 when invoked with the route 'admin/help'?", "context": "", "response": "function help_help($path, $arg): implements hook_help() and returns HTML markup with the site's initial setup steps and links to resources.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e1bc9855f1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpc.inc/function/xmlrpc_base64/7.x", "instruction": "In Drupal 7, what does the function xmlrpc_base64 do?", "context": "", "response": "function xmlrpc_base64($data): Creates and returns an XML-RPC object representing base64-encoded data.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e1d32b5e6d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21mysql%21query.inc/class/InsertQuery_mysql/7.x", "instruction": "What does the execute() method of the InsertQuery_mysql class do in Drupal 7 and what value does it return?", "context": "", "response": "public function execute(): executes the insert query via the connection, reinitializes values to reuse the query, and returns the last inserted id or NULL if pre-execution fails.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-e1e19e6b0a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/drupal_redirect_form/7.x", "instruction": "What does the function drupal_redirect_form do in Drupal 7?", "context": "", "response": "function drupal_redirect_form($form_state): Redirects the user to a URL after a form has been processed, based on $form_state and the 'destination' request parameter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e1ecb5716a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.fetch.inc/function/update_manual_status/7.x", "instruction": "What does the function update_manual_status() do in Drupal 7?", "context": "", "response": "function update_manual_status(): Manually checks the update status and displays the report without using cron.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e1f33a3536", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_prepare_translation/7.x", "instruction": "What custom translation preparation behavior does hook_field_prepare_translation define for a module's field types in Drupal 7?", "context": "", "response": "function hook_field_prepare_translation($entity_type, $entity, $field, $instance, $langcode, &$items, $source_entity, $source_langcode): Defines the custom prepare_translation behavior for the module's field types and empties the elements if the translating user does not have access to the source text format.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e217e12412", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.module/function/field_permission/7.x", "instruction": "What does the function field_permission() implement in Drupal 7 and what permissions does it define?", "context": "", "response": "function field_permission(): Defines the 'administer fields' and 'restrict access' permissions for the Field API module through the implementation of hook_permission().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e2214eaeb2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/_menu_link_parents_set/7.x", "instruction": "What does the _menu_link_parents_set function do when saving a menu link in Drupal 7?", "context": "", "response": "function _menu_link_parents_set(&$item, $parent): sets the p1 to p9 values of the link by copying them from the parent and filling up to the maximum depth.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e2244a5e74", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21content_types.inc/function/node_overview_types/7.x", "instruction": "What does the node_overview_types function do in Drupal 7 and where is it implemented?", "context": "", "response": "function node_overview_types(): Displays the content type administration summary page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e230a7a96c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21password.inc/constant/DRUPAL_HASH_COUNT/7.x", "instruction": "What is the value of the DRUPAL_HASH_COUNT constant and what is it used for in Drupal 7?", "context": "", "response": "define('DRUPAL_HASH_COUNT', 15);: Defines the number of iterations (log2) for password stretching, used in password hashing.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-e23ed71f7e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.module/function/shortcut_sets/7.x", "instruction": "What does the shortcut_sets() function return in Drupal 7?", "context": "", "response": "function shortcut_sets(): Returns an array of all shortcut sets, indexed by set name, with the basic properties name and title.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e24cf463f8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_form_field_ui_field_edit_form_alter/7.x", "instruction": "What does the user_form_field_ui_field_edit_form_alter function do in Drupal 7 and what does it add to the field edit form?", "context": "", "response": "function user_form_field_ui_field_edit_form_alter(&$form, &$form_state, $form_id): Adds a checkbox for the 'user_register_form' setting in the field instance edit form, automatically checked when the field is required.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e256627ff7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21number%21number.module/function/number_field_info/7.x", "instruction": "What does the number_field_info() function do in Drupal 7 and what field types does it define?", "context": "", "response": "function number_field_info(): Implements hook_field_info() and defines three numeric field types (integer, decimal, float) with their settings, widget, and default formatter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e28f733830", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_allowed_values/7.x", "instruction": "How does the taxonomy_allowed_values function obtain valid terms for a taxonomy field in Drupal?", "context": "", "response": "function taxonomy_allowed_values($field): Returns an array of valid terms for the taxonomy field, building options from the vocabularies configured in the field settings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e290b0e89f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.module/function/profile_block_info/7.x", "instruction": "What does the profile_block_info function do in the profile module of Drupal 7?", "context": "", "response": "function profile_block_info(): Returns an array that defines the 'Author information' block with its description and cache settings DRUPAL_CACHE_PER_PAGE | DRUPAL_CACHE_PER_ROLE", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e2b054c616", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/element_validate_integer_positive/7.x", "instruction": "What does the function element_validate_integer_positive do in Drupal?", "context": "", "response": "function element_validate_integer_positive($element, &$form_state): Validates that an element's value is a positive integer, showing an error if not.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e2b8c69592", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21ajax.inc/function/ajax_command_insert/7.x", "instruction": "What does the function ajax_command_insert do and how is it used to create an Ajax 'insert' command in Drupal 7?", "context": "", "response": "function ajax_command_insert($selector, $html, $settings = NULL): Creates an Ajax 'insert' command that instructs the client to insert the provided HTML using the jQuery method defined in #ajax['method'].", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e2be978793", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/_filter_xss_split/7.x", "instruction": "What is the purpose of the function _filter_xss_split($m, $store = FALSE) in Drupal 7?", "context": "", "response": "function _filter_xss_split($m, $store = FALSE): Processes an HTML element, cleaning it or allowing it based on the specified tags.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e2c05f6124", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21contact%21contact.module/function/contact_help/7.x", "instruction": "What does the function contact_help do in Drupal 7 and what help text does it generate for the Contact module?", "context": "", "response": "function contact_help($path, $arg): Implements hook_help() to return the Contact module's help documentation, describing user contact forms, site-wide form, navigation, and customization with blocks.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e2d4be286a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_unpublish_action/7.x", "instruction": "What does the function node_unpublish_action do in Drupal 7 and what parameters does it receive?", "context": "", "response": "function node_unpublish_action($node, $context = array()): Sets the node's status to unpublished (0), logs the action in watchdog with the node type and title.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e2ebd14ccc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.inc/function/_openid_is_xri/7.x", "instruction": "How to check if an identifier is an XRI ID in Drupal 7 using the function _openid_is_xri()?", "context": "", "response": "function _openid_is_xri($identifier): Determines if the given identifier is an XRI ID, removing the xri:// scheme if present and checking if its first character is =, @, +, $ or !.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e2f5c29d78", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_load/7.x", "instruction": "What does hook_load do in Drupal 7 and when is it invoked during node loading?", "context": "", "response": "function hook_load($nodes): Acts on nodes being loaded from the database, allowing adding information not found in the node or node_revision tables.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e305a7a33d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_node_validate/7.x", "instruction": "How does the function forum_node_validate ensure a forum node is assigned only to a leaf term in the forum taxonomy in Drupal 7?", "context": "", "response": "function forum_node_validate($node, $form): Checks that the node has only non-container (leaf) terms selected in the forum taxonomy and displays validation errors if a container is selected or the term is missing.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e319cfa9c5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_uid_optional_load/7.x", "instruction": "What does the user_uid_optional_load function do in Drupal 7 when no UID is passed to it?", "context": "", "response": "function user_uid_optional_load($uid = NULL): loads the specified user account or the current user account if no uid is provided, returning the loaded user object or FALSE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e31ed500bc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dblog%21dblog.module/function/dblog_form_system_logging_settings_alter/7.x", "instruction": "What does the dblog_form_system_logging_settings_alter function do when altering the system logging settings form in Drupal 7?", "context": "", "response": "function dblog_form_system_logging_settings_alter(&$form, $form_state): Adds a select field to set the database log row limit and increases the weight of the form's actions block.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e322a2c24b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.admin.inc/function/locale_translate_edit_form/7.x", "instruction": "What does the locale_translate_edit_form function do in Drupal 7?", "context": "", "response": "function locale_translate_edit_form($form, &$form_state, $lid): provides the user interface for editing translation strings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e32d3df6d8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_is_blocked/7.x", "instruction": "What does the user_is_blocked function do in Drupal 7 and what does it return?", "context": "", "response": "function user_is_blocked($name): Checks if a username is blocked by user administration and returns an object with the 'name' property if it is, or FALSE if it is not.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e35a14fa1b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21announcements_feed%21announcements_feed.module/function/announcements_feed_toolbar_pre_render_alter/7.x", "instruction": "How does announcements_feed_toolbar_pre_render_alter add a default CSS class to the announcements link in the toolbar?", "context": "", "response": "function announcements_feed_toolbar_pre_render_alter($toolbar): Adds the announcements_feed-toolbar.css file to the toolbar and adds the 'announcement-default' class to the link pointing to 'admin/announcements_feed' within the toolbar menu.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e366ab4e82", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_menu_alter/7.x", "instruction": "What does the comment_menu_alter function do in Drupal 7 and what does it modify in the menu?", "context": "", "response": "function comment_menu_alter(&$items): Implements hook_menu_alter() to add comments to the description of admin/content and adjust the Field UI tabs for comments at admin/structure/types/manage/%comment_node_type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e36d65b3de", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/constant/MENU_CONTEXT_INLINE/7.x", "instruction": "What does the MENU_CONTEXT_INLINE constant do in Drupal's menu system?", "context": "", "response": "define('MENU_CONTEXT_INLINE', 0x2);: It is an internal flag indicating that a local task should be displayed inline.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-e373c69a7e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.attach.inc/function/field_attach_load_revision/7.x", "instruction": "What does the field_attach_load_revision function do in Drupal 7 and when is it automatically called by the entity controller?", "context": "", "response": "function field_attach_load_revision($entity_type, $entities, $options = array()): loads all fields of previous revisions of an entity bundle, adding field data directly to the entity objects in the $entities array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e3777e2338", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.admin.inc/function/image_style_add_form/7.x", "instruction": "How is the form for adding a new image style defined in Drupal 7?", "context": "", "response": "function image_style_add_form($form, &$form_state): Builds the form for adding a new image style.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e382f7eb6c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/template_process_maintenance_page/7.x", "instruction": "What does the function template_process_maintenance_page do in Drupal 7?", "context": "", "response": "function template_process_maintenance_page(&$variables): Prepares variables for the maintenance theme, replicating the behavior of template_process_html() and assigning head, css, styles, and scripts.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e38ccbb7d0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpc.inc/function/xmlrpc_value_calculate_type/7.x", "instruction": "What does the function xmlrpc_value_calculate_type do in Drupal 7 when determining the XML-RPC type of a value?", "context": "", "response": "function xmlrpc_value_calculate_type($xmlrpc_value): Maps the PHP type of a variable to its corresponding XML-RPC type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e3905d8712", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.install/function/profile_uninstall/7.x", "instruction": "What does the function profile_uninstall do in the profile module of Drupal 7?", "context": "", "response": "function profile_uninstall(): Deletes the variable 'profile_block_author_fields' when uninstalling the module.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e39f54cd34", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/function/locale_language_url_rewrite_url/7.x", "instruction": "How does locale_language_url_rewrite_url modify URL options based on the language negotiation method (prefix or domain) in Drupal 7?", "context": "", "response": "function locale_language_url_rewrite_url(&$path, &$options): Rewrites URLs for the URL language provider, modifying $options['base_url'] for domain negotiation or $options['prefix'] for prefix negotiation based on the active language.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e3a976733d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_comment_publish/7.x", "instruction": "What does the function forum_comment_publish($comment) do in Drupal 7?", "context": "", "response": "function forum_comment_publish($comment): Updates the forum index of the node associated with the published comment.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e3b10c0c65", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_link_delete/7.x", "instruction": "How does the function menu_link_delete remove a menu link by its mlid or by its path in Drupal 7?", "context": "", "response": "function menu_link_delete($mlid, $path = NULL): Deletes one or more menu links using the given mlid or, if NULL, the specified path.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e3d157382c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21overlay%21overlay.module/function/overlay_system_info_alter/7.x", "instruction": "What does the function overlay_system_info_alter do in Drupal 7 when implementing hook_system_info_alter?", "context": "", "response": "function overlay_system_info_alter(&$info, $file, $type): Adds the 'content' and 'help' regions to the overlay_regions array when the type is 'theme'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e3db616e0a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21tablesort.inc/function/tablesort_get_sort/7.x", "instruction": "What determines the current sort direction using the function tablesort_get_sort($headers) in Drupal 7?", "context": "", "response": "function tablesort_get_sort($headers): Returns the current sort direction ('asc' or 'desc') from the table headers.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e3e2a91c6a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_validate/7.x", "instruction": "What does the function poll_validate($node, $form) that implements hook_validate() do in the Poll module of Drupal 7?", "context": "", "response": "function poll_validate($node, $form): Validates that the poll has at least two options and that votes are not negative, setting form errors otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e3ea6d0377", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_get_router/7.x", "instruction": "What does the function menu_get_router() do in Drupal 7?", "context": "", "response": "function menu_get_router(): Gets the menu router that defines navigation and routes requests to URL-based code.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e4002e8298", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.admin.inc/function/locale_translate_export_po_form/7.x", "instruction": "What parameters does the function locale_translate_export_po_form($form, &$form_state, $names) receive in Drupal 7?", "context": "", "response": "function locale_translate_export_po_form($form, &$form_state, $names): Creates a form that allows exporting PO files for the specified languages.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e412d889bf", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.attach.inc/function/field_attach_update/7.x", "instruction": "How is the field information of an existing entity saved in Drupal 7 using field_attach_update?", "context": "", "response": "function field_attach_update($entity_type, $entity): Saves the field data of an existing entity.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e415b579ed", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.admin.inc/function/block_add_block_form_submit/7.x", "instruction": "What does the function block_add_block_form_submit do in Drupal 7 when the add block form is submitted?", "context": "", "response": "function block_add_block_form_submit($form, &$form_state): Saves the new custom block by inserting it into the block_custom, block, and block_role tables, and sets the corresponding messages and redirect.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e41b93dbef", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.install/function/taxonomy_update_dependencies/7.x", "instruction": "What does the function taxonomy_update_dependencies() do in Drupal 7?", "context": "", "response": "function taxonomy_update_dependencies(): Declares that update 7004 of the taxonomy module depends on update 7027 of the system module, implementing hook_update_dependencies().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e432661a2e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_block_view/7.x", "instruction": "What does the function node_block_view do when implementing hook_block_view in Drupal 7?", "context": "", "response": "function node_block_view($delta = ''): Generates the content of syndication blocks and recent content blocks based on the value of $delta.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e47598c891", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/db_condition/7.x", "instruction": "What does the db_condition function do in Drupal?", "context": "", "response": "function db_condition($conjunction): Returns a new DatabaseCondition object configured with the specified condition conjunction (AND, OR, or XOR).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e484c8d208", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.info.inc/function/_field_info_collate_types/7.x", "instruction": "What does the _field_info_collate_types function do and what does it return based on the $reset parameter in Drupal 7?", "context": "", "response": "function _field_info_collate_types($reset = FALSE): collects and caches information about field types, widgets, formatters, storage, and fieldable entities; if $reset is TRUE it clears the cache and returns nothing, if FALSE it returns an array with all those structures indexed by type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e48939bc8a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21stream_wrappers.inc/class/DrupalTemporaryStreamWrapper/7.x", "instruction": "What path does the getDirectoryPath method of the DrupalTemporaryStreamWrapper class return in Drupal 7?", "context": "", "response": "public function getDirectoryPath(): returns the value of the file_temporary_path variable or, if not defined, the system temporary directory via file_directory_temp().", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-e48d8e9cf4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.install/function/search_schema/7.x", "instruction": "What database schema does the search_schema function of the search module define in Drupal 7?", "context": "", "response": "function search_schema(): Defines the search_dataset, search_index, search_total, and search_node_links tables that store search data.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e4a7d873a0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_menu/7.x", "instruction": "What menu routes does the comment_menu function define in Drupal 7 for comment administration?", "context": "", "response": "function comment_menu(): implements hook_menu() and declares routes for listing comments, approval queue, permalink, view, edit, approve, delete, and reply to comments, returning the $items array with its callbacks, access, and associated files.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e4ad168440", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_purge_instance/7.x", "instruction": "When is hook_field_purge_instance invoked and what parameter does it receive in Drupal 7?", "context": "", "response": "function hook_field_purge_instance($instance): It is invoked after a field instance has been deleted from the database, the storage module has executed its hook_field_storage_purge_instance, and the field info cache has been cleared, allowing modules to respond to the instance purge.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e4c673211d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/constant/FILE_EXISTS_ERROR/7.x", "instruction": "What does the FILE_EXISTS_ERROR constant indicate in Drupal 7?", "context": "", "response": "define('FILE_EXISTS_ERROR', 2);: Indicates that when an existing file is found, nothing is done and FALSE is returned.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-e4cdf4ae41", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.api.php/function/hook_search_info/7.x", "instruction": "How is hook_search_info implemented to define a custom search type in Drupal 7?", "context": "", "response": "function hook_search_info(): Defines a custom search type by specifying title, path, and condition callback so that search.module registers it.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e4ed1813ca", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/misc%21brumann%21polyfill-unserialize%21src%21Unserialize.php/class/Unserialize/7.x", "instruction": "What does the unserialize method of the Unserialize class do in Drupal 7 and how does it handle the allowed_classes option in PHP versions prior to 7.0?", "context": "", "response": "public static function unserialize($serialized, array $options = array()): Provides backward compatibility (polyfill) for unserialize() in PHP < 7.0, filtering allowed classes via the allowed_classes option and replacing unauthorized classes with __PHP_Incomplete_Class.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-e506432ac3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_menu_link_insert/7.x", "instruction": "How is hook_menu_link_insert used in Drupal 7 to act when a new menu link is created?", "context": "", "response": "function hook_menu_link_insert($link): informs modules that a menu link has been created and receives the associative array $link with the link definition as passed to menu_link_save().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e518395868", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_permission/7.x", "instruction": "What permissions does the user_permission function of the user module define in Drupal 7?", "context": "", "response": "function user_permission(): implements hook_permission and returns an array with permissions such as administer permissions, administer users, view profiles, change username, cancel account, and select cancellation method, each with a title and some with restrict access or description.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e521264c4c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21field_sql_storage%21field_sql_storage.module/function/field_sql_storage_field_storage_delete/7.x", "instruction": "How does field_sql_storage_field_storage_delete implement hook_field_storage_delete() in Drupal 7 and what exactly does it do?", "context": "", "response": "function field_sql_storage_field_storage_delete($entity_type, $entity, $fields): Implements hook_field_storage_delete() and deletes from the database the data of all fields of an entity.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e522fb43a4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/external_documentation%21developer%21globals.php/global/multibyte/7.x", "instruction": "What does the global variable $multibyte represent in Drupal 7 and what values can it contain?", "context": "", "response": "global $multibyte;: Contains the current multibyte mode, taking values UNICODE_ERROR, UNICODE_SINGLEBYTE or UNICODE_MULTIBYTE.", "tags": ["api-reference", "global"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e5374bc821", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_term_load/7.x", "instruction": "How is a taxonomy term loaded by its ID in Drupal 7 and what does the function return if not found?", "context": "", "response": "function taxonomy_term_load($tid): returns the taxonomy term object corresponding to the given ID, or FALSE if not numeric or does not exist, with results stored in static cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e560a85547", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/flood_register_event/7.x", "instruction": "How to register an event for the flood control mechanism in Drupal 7?", "context": "", "response": "function flood_register_event($name, $window = 3600, $identifier = NULL): registers an event for the current visitor in the flood control mechanism.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e565e86cb7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21trigger%21trigger.module/function/trigger_node_view/7.x", "instruction": "What does the trigger_node_view function do in Drupal 7?", "context": "", "response": "function trigger_node_view($node, $view_mode): implements hook_node_view() and triggers the node_view event via _trigger_node.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e56813fda0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/format_plural/7.x", "instruction": "How does the format_plural function format a string with an item count in Drupal 7?", "context": "", "response": "function format_plural($count, $singular, $plural, array $args = array(), array $options = array()): formats a string containing an item count, ensuring correct pluralization via t() and returning the translated string.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e574cb9cb7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_role_delete/7.x", "instruction": "How does the user_role_delete function remove a user role from the database in Drupal 7?", "context": "", "response": "function user_role_delete($role): Removes a user role from the database, including its permissions and user assignments, and invokes hook_user_role_delete before clearing static caches for access and role permissions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e583c052a8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/format_rss_channel/7.x", "instruction": "What does the format_rss_channel function do in Drupal 7?", "context": "", "response": "function format_rss_channel($title, $link, $description, $items, $langcode = NULL, $args = array()): Formats an RSS channel by building the XML with title, link, description, language, additional elements, and the provided items, returning the complete channel string.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e5846e9ee8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.admin.inc/function/image_scale_form/7.x", "instruction": "What does the image_scale_form($data) function return and how does it build it in the Image module of Drupal 7?", "context": "", "response": "function image_scale_form($data): Returns a form array with image scaling options, including a checkbox to allow upscaling based on the provided configuration.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e58e97cd07", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/function/block_form_user_profile_form_alter/7.x", "instruction": "How does block_form_user_profile_form_alter implement hook_form_USER_PROFILE_form_alter to add block customization to the user profile in Drupal?", "context": "", "response": "function block_form_user_profile_form_alter(&$form, &$form_state): Adds a fieldset with checkboxes to the user profile (category 'account') so the user can enable or disable customizable blocks based on their roles, querying the block and block_role tables.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e593c287de", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_widget_properties_alter/7.x", "instruction": "How is hook_field_widget_properties_alter used to modify field widget properties before display in Drupal 7?", "context": "", "response": "function hook_field_widget_properties_alter(&$widget, $context): alters the widget properties of a field instance before display, receiving the widget by reference and a context array with entity_type, entity, field, and instance.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e5aedf9680", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.module/function/_menu_parents_recurse/7.x", "instruction": "What does the _menu_parents_recurse function do in Drupal 7 and what is its exact signature?", "context": "", "response": "function _menu_parents_recurse($tree, $menu_name, $indent, &$options, $exclude, $depth_limit): is a recursive helper function that traverses a menu tree to build parent options, omitting excluded or hidden items and respecting the depth limit.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e5c89f6c30", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_clean_url_settings/7.x", "instruction": "What does the system_clean_url_settings function do in Drupal 7 and how does it determine if clean URLs are available?", "context": "", "response": "function system_clean_url_settings($form, &$form_state): Builds a form to configure clean URLs, checks availability via the request URI or an HTTP test, and handles enabling/disabling with conflict detection.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e5d6a223e1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_form_BASE_FORM_ID_alter/7.x", "instruction": "What is the hook_form_BASE_FORM_ID_alter hook used for in Drupal 7?", "context": "", "response": "function hook_form_BASE_FORM_ID_alter(&$form, &$form_state, $form_id): allows modifying a specific shared base form (factory form) instead of using hook_form_alter and checking conditions to identify the shared builder.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e5db7e68e8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.pages.inc/function/openid_user_identities/7.x", "instruction": "What does the openid_user_identities function do in the Drupal 7 OpenID module?", "context": "", "response": "function openid_user_identities($account): is a menu callback that manages a user's OpenID identities: processes the OpenID authentication response to add new identities to the authmap table and displays a table with existing identities and links to delete them.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e5ff5c9b2b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.admin.inc/function/field_ui_field_delete_form/7.x", "instruction": "What does the field_ui_field_delete_form function do in Drupal 7 and how does it build the confirmation form for deleting a field instance?", "context": "", "response": "function field_ui_field_delete_form($form, &$form_state, $instance): Builds a confirmation form for deleting a field instance from a bundle, warning that content will be lost and the action cannot be undone, and disables submission if the field is locked.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e605039dc8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_js_alter/7.x", "instruction": "What does the locale_js_alter function do in Drupal 7?", "context": "", "response": "function locale_js_alter(&$javascript): implements hook_js_alter() to parse JavaScript files for calls to Drupal.t() and Drupal.formatPlural(), update the JavaScript translation file if necessary, and add it to the page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e605675319", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_get_cache/7.x", "instruction": "How to retrieve a form from cache in Drupal 7 using its build ID and form state?", "context": "", "response": "function form_get_cache($form_build_id, &$form_state): Retrieves the cached form corresponding to $form_build_id and, if found, updates $form_state for subsequent rebuilds.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e60f6c24c2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.inc/function/_openid_signature/7.x", "instruction": "What does the _openid_signature function do in the Drupal 7 OpenID module?", "context": "", "response": "function _openid_signature($association, $message_array, $keys_to_sign): Signs the specified keys of an OpenID message using the provided association and returns the base64-encoded signature.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e624eaa417", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21content_types.inc/function/node_type_form/7.x", "instruction": "What is the signature and what does the node_type_form function do in Drupal 7 when building the node type edit form?", "context": "", "response": "function node_type_form($form, &$form_state, $type = NULL): Builds the node type editor form, sets default values for new types, and defines fields for name, machine type, description, submission options, publishing, and display.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e627209e77", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_role_save/7.x", "instruction": "What does the user_role_save function do and what value does it return when saving a user role in Drupal 7?", "context": "", "response": "function user_role_save($role): Saves a role object to the database, creating a new one if it has no rid or updating the existing one, invokes the presave, insert, or update hooks, clears the static access and permission caches, and returns SAVED_NEW, SAVED_UPDATED, or FALSE if the write fails.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e6348e09fb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/function/drupal_detect_database_types/7.x", "instruction": "What does the function drupal_detect_database_types() do in Drupal 7 and what does it return?", "context": "", "response": "function drupal_detect_database_types(): detects all compatible database engines compiled in PHP and returns an associative array with their names.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e63b83a4ff", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_language_initialize/7.x", "instruction": "What does the function drupal_language_initialize do in Drupal 7?", "context": "", "response": "function drupal_language_initialize(): initializes all defined language types by setting the corresponding global variables to the default language and, if the site is multilingual, includes language.inc, initializes each type via language_initialize and invokes the hook language_init.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e689d53e36", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/db_like/7.x", "instruction": "What does the function db_like do in Drupal 7 and how does it allow searching for literal strings without wildcard behavior in LIKE patterns?", "context": "", "response": "function db_like($string): escapes the wildcard characters %, _ and the backslash in a LIKE pattern to allow searching for a literal string.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e69490995e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_view_page/7.x", "instruction": "What does the function user_view_page do in Drupal 7 and what does it return when the account does not exist?", "context": "", "response": "function user_view_page($account): wraps user_view() as a page callback, returning MENU_NOT_FOUND if the account is not an object.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e6a6d4563e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_actions_delete/7.x", "instruction": "How is hook_actions_delete implemented to execute code after an action is deleted in Drupal 7?", "context": "", "response": "function hook_actions_delete($aid): Allows modules to execute code after an action is deleted from the system.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e6bb8fe858", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.api.php/function/hook_aggregator_parse_info/7.x", "instruction": "What does the function hook_aggregator_parse_info do in Drupal 7?", "context": "", "response": "function hook_aggregator_parse_info(): specifies the title and short description of the parser, returning an associative array with keys 'title' and 'description' that are displayed on the configuration page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e6bc9c410c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_table/7.x", "instruction": "What parameters does the function theme_table(array $variables) need to generate the HTML table in Drupal 7?", "context": "", "response": "function theme_table(array $variables): Generates the HTML of a table from the provided parameters.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e6d1f64a68", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21trigger%21trigger.module/function/trigger_node_delete/7.x", "instruction": "What does the function trigger_node_delete do in Drupal 7?", "context": "", "response": "function trigger_node_delete($node): Implements hook_node_delete() and executes _trigger_node($node, 'node_delete').", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e6e1099c73", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/function/drupal_detect_baseurl/7.x", "instruction": "What does the drupal_detect_baseurl function do and how does it calculate the base URL from the $_SERVER variables?", "context": "", "response": "function drupal_detect_baseurl($file = 'install.php'): Detects the base URL using the $_SERVER variables and returns the auto-detected URL that should be configured in settings.php.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e714b3212e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/constant/REGISTRY_RESET_LOOKUP_CACHE/7.x", "instruction": "What does the REGISTRY_RESET_LOOKUP_CACHE constant do in Drupal?", "context": "", "response": "define('REGISTRY_RESET_LOOKUP_CACHE', 1);: Signals that the registry lookup cache should be reset.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-e73e1c9af4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_user_presave/7.x", "instruction": "What does the user_user_presave function do in the Drupal 7 user module?", "context": "", "response": "function user_user_presave(&$edit, $account, $category): Implements hook_user_presave() to process user image upload or deletion, filter empty roles, and move account cancellation information to the data array before saving.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e73e230dc5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21list%21list.module/function/list_field_info/7.x", "instruction": "What field types does the list_field_info() function register in the list module in Drupal 7?", "context": "", "response": "function list_field_info(): Implements hook_field_info() registering the list_integer, list_float, list_text, and list_boolean types with their allowed values and default settings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e74747464d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21options%21options.module/function/options_array_flatten/7.x", "instruction": "How does the options_array_flatten function flatten an array of allowed values in Drupal 7?", "context": "", "response": "function options_array_flatten($array): Recursively traverses the array (simple or multidimensional) and returns a flattened array keeping the keys of non-array values.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e74f6feed3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_cache_clear_all/7.x", "instruction": "What does the menu_cache_clear_all function do in Drupal 7?", "context": "", "response": "function menu_cache_clear_all(): Clears all cached menu data by emptying the cache_menu container and resetting the static menu cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e753a64919", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21filetransfer%21local.inc/class/FileTransferLocal/7.x", "instruction": "What does the chmodJailed method of the FileTransferLocal class do in Drupal 7 and what interface does it override?", "context": "", "response": "public function chmodJailed($path, $mode, $recursive): Changes the permissions of the specified file or directory and, if $recursive is true and the path is a directory, applies chmod recursively to all its contents.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-e766fbc29a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/_drupal_bootstrap_variables/7.x", "instruction": "What does the _drupal_bootstrap_variables function do in Drupal 7 during the bootstrap process?", "context": "", "response": "function _drupal_bootstrap_variables(): Loads system variables and enabled bootstrap modules, initializes the locking system, and sanitizes the destination parameter to prevent open redirect attacks.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e767f33151", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.default.inc/function/field_default_submit/7.x", "instruction": "What does the field_default_submit function do in Drupal 7 and what is its full signature?", "context": "", "response": "function field_default_submit($entity_type, $entity, $field, $instance, $langcode, &$items, $form, &$form_state): Filters empty values and reorders elements to account for drag-and-drop ordering.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e78b6e6840", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_uninstall/7.x", "instruction": "What does hook_uninstall do in Drupal 7 and what should it remove when uninstalling a module?", "context": "", "response": "function hook_uninstall(): Removes information the module has set, such as variables and modifications to existing tables, but not its entry in the {system} table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e790814616", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.install/function/comment_update_7002/7.x", "instruction": "What does the comment_update_7002 function do in Drupal 7?", "context": "", "response": "function comment_update_7002(): Renames the {comments} table to {comment}, adds user-related indexes if they don't exist, and creates a language column with its corresponding index.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e7a42134b6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_state_values_clean/7.x", "instruction": "How do I remove internal form API values and buttons from a $form_state before storing submitted values?", "context": "", "response": "function form_state_values_clean(&$form_state): Removes internal form API elements and button values from the form's submitted values array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e7b1781801", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.admin.inc/function/aggregator_form_opml_submit/7.x", "instruction": "What does the function aggregator_form_opml_submit do when processing the submission of the form for importing OPML in the Drupal 7 aggregator module?", "context": "", "response": "function aggregator_form_opml_submit($form, &$form_state): Handles the submission of the form agregator_form_opml, processes an uploaded OPML file or a remote URL, parses the feeds, validates URLs, avoids duplicates, and sends the form agregator_form_feed for each feed before redirecting to the aggregator administration page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e7cb9b6e69", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_schema/7.x", "instruction": "How is the database schema defined for a field type via hook_field_schema in Drupal 7?", "context": "", "response": "function hook_field_schema($field): Defines the Field API schema for a field structure, specifying columns, indexes, and foreign keys.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e7e49e13e8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_permission/7.x", "instruction": "What permissions does the taxonomy_permission function return in Drupal 7?", "context": "", "response": "function taxonomy_permission(): Returns an array of permissions including 'administer taxonomy' and, for each vocabulary, dynamic permissions 'edit terms in ' and 'delete terms in ' with translated titles incorporating the vocabulary name.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e7e878622e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21blog%21blog.module/function/blog_form/7.x", "instruction": "What does the blog_form function do in the blog module of Drupal 7?", "context": "", "response": "function blog_form($node, $form_state): Implements hook_form() and delegates form construction to node_content_form() for the received node.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e7e87e8a93", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.install/function/forum_update_7012/7.x", "instruction": "What does the forum_update_7012 function do in Drupal 7 and what indexes does it add?", "context": "", "response": "function forum_update_7012(): Adds the 'created' and 'last_comment_timestamp' indexes in the forum_index table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e7ee72373f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_modules_disabled/7.x", "instruction": "What does the hook_modules_disabled hook do in Drupal 7 and how does it differ from hook_disable?", "context": "", "response": "function hook_modules_disabled($modules): runs after modules are disabled, allowing all modules to react to the disabling, unlike hook_disable which is only called in the module being disabled; receives an array with the disabled modules.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e7f2e76165", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21language.inc/constant/LANGUAGE_NEGOTIATION_DEFAULT/7.x", "instruction": "What value and purpose does the LANGUAGE_NEGOTIATION_DEFAULT constant have in Drupal 7?", "context": "", "response": "define('LANGUAGE_NEGOTIATION_DEFAULT', 'language-default');: indicates that no language negotiation is performed and the site's default language is used.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-e7f9ea72d9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_status/7.x", "instruction": "What does the system_status function do in Drupal 7 and what does it return when TRUE is passed as an argument?", "context": "", "response": "function system_status($check = FALSE): Displays the site status report and, if $check is TRUE, returns only a boolean indicating whether there are system status errors.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e835c7c28f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/_system_date_format_types_build/7.x", "instruction": "What does the _system_date_format_types_build function do in Drupal 7?", "context": "", "response": "function _system_date_format_types_build(): builds and returns an associative array with information about available date types, combining those defined by modules via hook_date_format_types() and custom ones stored in the database, allowing subsequent alteration via drupal_alter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e83ef5377e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/filter_admin_format_title/7.x", "instruction": "What does the filter_admin_format_title function do in Drupal 7 and what does it return?", "context": "", "response": "function filter_admin_format_title($format): returns the name of the text format from the provided format object.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e841660983", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_entity_view/7.x", "instruction": "How to implement hook_entity_view to add a custom field before rendering an entity in Drupal 7?", "context": "", "response": "function hook_entity_view($entity, $type, $view_mode, $langcode): Allows adding or modifying elements in $entity->content before the entity is rendered.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e874c8557d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.admin.inc/function/locale_languages_predefined_form_validate/7.x", "instruction": "What validations does the locale_languages_predefined_form_validate function perform when processing the add predefined language form in Drupal 7?", "context": "", "response": "function locale_languages_predefined_form_validate($form, &$form_state): Checks if the language code already exists, validates predefined codes via the ISO list, and if a custom name is provided, reuses the validation from the language edit form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e88504d579", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.field.inc/function/file_field_widget_submit/7.x", "instruction": "What does the file_field_widget_submit function do in Drupal 7 when handling the file field form submission?", "context": "", "response": "function file_field_widget_submit($form, &$form_state): is the submission handler for the upload/remove buttons of file_field_widget_form(), cleans $form_state['input'] to avoid delta mismatches during rebuild and updates the submitted items.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e8859616e0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21tablesort.inc/class/TableSort/7.x", "instruction": "What does the orderByHeader method of the TableSort class do in Drupal 7?", "context": "", "response": "public function orderByHeader(array $header): Sorts the query according to an array of headers, initializes the sorting context and applies the sorting criterion to the indicated field.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-e88bbbe67f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.install/function/forum_update_7003/7.x", "instruction": "What does the forum_update_7003 function do in Drupal 7?", "context": "", "response": "function forum_update_7003(): Renames the forum field to the name 'taxonomy_forums', updating the field configuration, instances and associated database tables.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e8cbb301a9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/drupal_rebuild_form/7.x", "instruction": "What does the drupal_rebuild_form function do in Drupal 7 and when is it used to advance a multi-step form?", "context": "", "response": "function drupal_rebuild_form($form_id, &$form_state, $old_form = NULL): Builds a new $form from the information in $form_state, allowing multi-step forms to advance or partial rebuilds in Ajax.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e8d366283d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.core.inc/function/install_redirect_url/7.x", "instruction": "What does the install_redirect_url function return during an installation request in Drupal 7?", "context": "", "response": "function install_redirect_url($install_state): returns the redirect URL built with 'install.php?' plus the installation state parameters encoded as a query string.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e8f610cd57", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/_drupal_build_css_path/7.x", "instruction": "What does the _drupal_build_css_path function do in Drupal 7?", "context": "", "response": "function _drupal_build_css_path($matches, $base = NULL): prefixes all paths within a CSS file with the base path and removes '../' segments where possible for drupal_build_css_cache().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e8fce86ccb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_space_used/7.x", "instruction": "How does Drupal 7 determine the total disk space used by a specific user or by the entire file system?", "context": "", "response": "function file_space_used($uid = NULL, $status = FILE_STATUS_PERMANENT): Queries the file_managed table summing filesize with status condition and optional uid, returning the total bytes as an integer.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e8ffc53bf3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/format_string/7.x", "instruction": "What does the format_string function do in Drupal 7 and how does it process replacement arguments to display them safely in HTML?", "context": "", "response": "function format_string($string, array $args = array()): Replaces placeholders in a string with requested values, escaping them to display safely in HTML according to the placeholder prefix (@, %, !).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e90dcd4743", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/theme_textfield/7.x", "instruction": "What does the theme_textfield function do in Drupal 7?", "context": "", "response": "function theme_textfield($variables): Returns the HTML for a form element of type textfield.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e9130efcd2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dashboard%21dashboard.module/function/dashboard_update/7.x", "instruction": "What does the dashboard_update function of the dashboard module do in Drupal 7 and how does it update the weight of regions?", "context": "", "response": "function dashboard_update(): updates the weight and region of each block according to the drag order, saving in the block table and displaying a confirmation message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e931df0900", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/constant/CSS_SYSTEM/7.x", "instruction": "What is the value and purpose of the CSS_SYSTEM constant in Drupal 7?", "context": "", "response": "define('CSS_SYSTEM', -100);: Defines the default group (value -100) for system CSS files added to the page.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-e932714d8b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/_menu_delete_item/7.x", "instruction": "What does the _menu_delete_item function do in Drupal 7 and how does it handle child items when deleting a menu link?", "context": "", "response": "function _menu_delete_item($item, $force = FALSE): Deletes a single menu link, reassigns its children to the parent of the deleted element, invokes hook_menu_link_delete, deletes the database record, updates the parent's has_children status, and clears menu and page caches.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e95089c037", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_strip_dangerous_protocols/7.x", "instruction": "What does the drupal_strip_dangerous_protocols function do in Drupal 7?", "context": "", "response": "function drupal_strip_dangerous_protocols($uri): Removes dangerous protocols (such as 'javascript:') from a plain text URI.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e957cfc33e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/_comment_per_page/7.x", "instruction": "What comments per page values does the _comment_per_page() function return in Drupal 7 and what is it used for?", "context": "", "response": "function _comment_per_page(): returns an associative array with the options for number of comments per page (10, 30, 50, 70, 90, 150, 200, 250, 300) for the user to choose from.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e96ad9e27e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/element_children/7.x", "instruction": "How to get the keys of child elements of a render array in Drupal 7, with an option to sort them by weight?", "context": "", "response": "function element_children(&$elements, $sort = FALSE): Identifies and returns the keys of child elements (those that do not start with '#') of the $elements array, sorting them by weight if $sort is TRUE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e96db8a073", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_preferred_language/7.x", "instruction": "What does the user_preferred_language function do in Drupal 7 and what does it return if the user is anonymous or has no language preference?", "context": "", "response": "function user_preferred_language($account, $default = NULL): returns the language object preferred by the user account, or the site default language if there is no valid preference.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e97cc337c9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.module/function/field_view_field/7.x", "instruction": "How to get a renderable array to display a single field of an entity in Drupal 7?", "context": "", "response": "function field_view_field($entity_type, $entity, $field_name, $display = array(), $langcode = NULL): Returns a renderable array with the label and values of the specified field, applying prepare_view and respecting field access permissions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e9902b1ad2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.module/function/field_view_mode_settings/7.x", "instruction": "How to get the display mode configuration for a specific entity type and bundle in Drupal 7?", "context": "", "response": "function field_view_mode_settings($entity_type, $bundle): Returns an array indexed by display mode with the custom or default configuration for the specified bundle.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e994fd892e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_breadcrumb/7.x", "instruction": "What does the theme_breadcrumb() function do in Drupal 7 and what does it return?", "context": "", "response": "function theme_breadcrumb($variables): Returns the breadcrumb HTML with an invisible 'You are here' title and breadcrumb links separated by » inside a div.breadcrumb.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e999a98fdd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21list%21list.module/function/list_field_is_empty/7.x", "instruction": "What does the list_field_is_empty function in Drupal 7 do when determining if a list field is empty?", "context": "", "response": "function list_field_is_empty($item, $field): Returns TRUE when the field value is empty but not the string '0', and FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e9a5e19f00", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dblog%21dblog.module/function/dblog_watchdog/7.x", "instruction": "What does the dblog_watchdog function do in Drupal 7 and how does it store watchdog entries?", "context": "", "response": "function dblog_watchdog(array $log_entry): Implements hook_watchdog() inserting each entry into the watchdog table, truncating type/link/hostname to fit column size, serializing variables, and silently catching exceptions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e9b34194a0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.module/constant/PROFILE_PRIVATE/7.x", "instruction": "What does the PROFILE_PRIVATE constant indicate in the Profile module of Drupal 7?", "context": "", "response": "define('PROFILE_PRIVATE', 1);: Defines the value 1 to mark a profile field as private, making its content accessible only to privileged users.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-e9e764ae37", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_system_info_alter/7.x", "instruction": "What does the system_system_info_alter function do in Drupal 7 and what hook does it implement?", "context": "", "response": "function system_system_info_alter(&$info, $file, $type): Implements hook_system_info_alter() and hides the page_top and page_bottom regions in the block UI when the type is theme.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-e9e987916c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/drupal_find_theme_functions/7.x", "instruction": "How does drupal_find_theme_functions allow themes and theme engines to discover overridden theme functions in Drupal 7?", "context": "", "response": "function drupal_find_theme_functions($cache, $prefixes): Iterates over prefixes and theme hook cache to find theme functions that implement registered hooks or their 'suggestion' variants, returning them as implementations suitable for hook_theme.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ea07e9d870", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21number%21number.module/function/number_field_formatter_view/7.x", "instruction": "What does the function number_field_formatter_view do when implementing hook_field_formatter_view in Drupal 7 to format numeric fields?", "context": "", "response": "function number_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display): formats integer or decimal numeric values with scale, decimal/thousands separators and optional prefixes/suffixes, or returns them unformatted depending on the display type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ea1249d146", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/_node_access_rebuild_batch_finished/7.x", "instruction": "What does the function _node_access_rebuild_batch_finished do in Drupal 7?", "context": "", "response": "function _node_access_rebuild_batch_finished($success, $results, $operations): Implements the callback that runs after node_access_rebuild, displays messages and clears the cache based on the result.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ea384f7ba4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.module/function/theme_update_last_check/7.x", "instruction": "How does theme_update_last_check generate the HTML that shows the last update check and the link to check manually?", "context": "", "response": "function theme_update_last_check($variables): Returns the HTML with the date of the last update check and a 'Check manually' link.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ea3afe891b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_term_save/7.x", "instruction": "How is a taxonomy term saved in the database using the function taxonomy_term_save in Drupal 7?", "context": "", "response": "function taxonomy_term_save($term): Saves the taxonomy term object, inserting it if it has no tid or updating it if it already exists, and returns a status constant indicating whether it was inserted or updated.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ea3d46941c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/function/_locale_rebuild_js/7.x", "instruction": "What does the function _locale_rebuild_js do in Drupal 7 and how does it generate the JavaScript translation file?", "context": "", "response": "function _locale_rebuild_js($langcode = NULL): (Re)creates the JavaScript translation file for the specified language, generating a Drupal.locale object with the translated strings and saving it in the languages directory.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ea403ca91d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.admin.inc/function/forum_form_forum/7.x", "instruction": "How is the form for creating or editing a forum built in Drupal 7 using the function forum_form_forum?", "context": "", "response": "function forum_form_forum($form, &$form_state, $edit = array()): Builds the form for adding or editing a forum taxonomy term, defining fields such as name, description, weight, parent and submit actions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ea43e2e6bc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.inc/constant/OPENID_NS_1_1/7.x", "instruction": "What is the value of the constant OPENID_NS_1_1 in Drupal and what is it used for?", "context": "", "response": "define('OPENID_NS_1_1', 'http://openid.net/signon/1.1');: Defines the URL of the OpenID Authentication 1.1 namespace, used to maintain backward compatibility.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-ea4f70ccb3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21sqlite%21select.inc/class/SelectQuery_sqlite/7.x", "instruction": "What does the forUpdate method of the SelectQuery_sqlite class do in Drupal 7, given that SQLite does not support FOR UPDATE?", "context": "", "response": "public function forUpdate($set = TRUE): is a no-op in SQLite because this engine does not support FOR UPDATE, so it simply returns $this without doing anything.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-ea51e54fa0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.pages.inc/function/book_outline_form/7.x", "instruction": "What does the book_outline_form function do in Drupal 7?", "context": "", "response": "function book_outline_form($form, &$form_state, $node): Builds the book outline form, allowing all outline operations to be handled via the outline tab.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ea60a4ed85", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/db_driver/7.x", "instruction": "How to get the name of the currently active database driver in Drupal 7 using the db_driver() function?", "context": "", "response": "function db_driver(): Returns the name of the active database driver.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ea629a7f50", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/themes%21garland%21template.php/function/garland_process_page/7.x", "instruction": "What does the garland_process_page function do in Drupal 7 and how does it interact with the color module?", "context": "", "response": "function garland_process_page(&$variables): Overrides or inserts variables in the page template and, if the color module exists, calls _color_page_alter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ea853c4c52", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.install/function/locale_schema/7.x", "instruction": "What tables does the locale_schema() function's hook_schema() implementation define in Drupal 7?", "context": "", "response": "function locale_schema(): Defines the schema for the {languages}, {locales_source}, and {locales_target} tables for the Locale module in Drupal 7.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ea895de176", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.field.inc/function/file_field_prepare_view/7.x", "instruction": "What does the file_field_prepare_view function do when preparing the view of a file field in Drupal 7?", "context": "", "response": "function file_field_prepare_view($entity_type, $entities, $field, $instances, $langcode, &$items): removes field items that should not be displayed and re-indexes the deltas consecutively.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ea95559842", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_excerpt/7.x", "instruction": "How to extract text excerpts with highlighted keywords using the search_excerpt function in Drupal 7?", "context": "", "response": "function search_excerpt($keys, $text): Returns an HTML text excerpt with keywords highlighted in .", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eab9855000", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.attach.inc/function/field_attach_form_validate/7.x", "instruction": "What does the field_attach_form_validate function do in Drupal 7 and how does it convert field validation errors into form errors?", "context": "", "response": "function field_attach_form_validate($entity_type, $entity, $form, &$form_state, $options = array()): performs field validation against submitted form values and converts validation errors into form errors on the correct elements.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eacd42c90d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/class/UserController/7.x", "instruction": "What does the attachLoad method of the UserController class do in Drupal?", "context": "", "response": "function attachLoad(&$queried_users, $revision_id = FALSE): attaches additional data to users when loading them, including their roles and profile image file objects.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-ead2ad8860", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_pre_render_scripts/7.x", "instruction": "What does the drupal_pre_render_scripts method do in Drupal?", "context": "", "response": "function drupal_pre_render_scripts(array $elements): Callback that processes script elements to add necessary JavaScript files to the render, including scripts, settings, and external files based on their parameters.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eaedfef95a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.install/function/user_update_7014/7.x", "instruction": "What does the user_update_7014 function do in Drupal 7?", "context": "", "response": "function user_update_7014(): renames the permission 'post comments without approval' to 'skip comment approval' in the role_permission table and returns a translated confirmation message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eaf8de0bbe", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_delete_multiple/7.x", "instruction": "How do I delete multiple comments and all their replies using the comment API in Drupal 7?", "context": "", "response": "function comment_delete_multiple($cids): Deletes the specified comments and all their replies.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eafa534945", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_user_operations_unblock/7.x", "instruction": "What does the user_user_operations_unblock function do in Drupal 7 and how does it unblock users in bulk?", "context": "", "response": "function user_user_operations_unblock($accounts): loads user accounts and unblocks those that are blocked by setting their status to 1.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eb07312190", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_is_cli/7.x", "instruction": "How to detect if the current script is running in a command-line interface (CLI) environment in Drupal 7?", "context": "", "response": "function drupal_is_cli(): Detects if the current script is running in a command-line interface (CLI) environment.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eb1bed115e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.field.inc/function/theme_file_formatter_table/7.x", "instruction": "What does the theme_file_formatter_table function do in Drupal 7?", "context": "", "response": "function theme_file_formatter_table($variables): returns the HTML of a table showing attachments, creating a row for each file with its link and size.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eb1d777bc9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_simplify_excerpt_match/7.x", "instruction": "What is the search_simplify_excerpt_match function used for in Drupal 7 and what does it do when it does not find an exact match in the text?", "context": "", "response": "function search_simplify_excerpt_match($key, $text, $offset, $boundary): Finds words in the original text that match after simplifying them with search_simplify(), returning the position and the word found, or FALSE if there is no match.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eb1e4fb0a8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_attach_update/7.x", "instruction": "When is the hook_field_attach_update hook invoked and what does it allow modules to do in Drupal 7?", "context": "", "response": "function hook_field_attach_update($entity_type, $entity): Runs after field_attach_update() has saved the field data of an entity, allowing modules to perform additional actions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eb2b1902f1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.install/function/update_update_7000/7.x", "instruction": "What does the function update_update_7000() do in Drupal 7.x?", "context": "", "response": "function update_update_7000(): Creates a queue to store tasks requesting available update data.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eb3f2a7747", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21php%21php.install/function/php_enable/7.x", "instruction": "What does the function php_enable do when implementing hook_enable in Drupal 7?", "context": "", "response": "function php_enable(): creates the 'PHP code' text format if it does not exist, enables the PHP evaluator filter, and displays an informational message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eb40cc3988", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.module/function/_profile_field_types/7.x", "instruction": "What does the function _profile_field_types($type = NULL) from the profile module return in Drupal 7?", "context": "", "response": "function _profile_field_types($type = NULL): returns an array of profile field types with their translated labels, or the label of a specific type if $type is passed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eb53a77dcd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21trigger%21trigger.admin.inc/function/theme_trigger_display/7.x", "instruction": "What does the function theme_trigger_display return in Drupal 7 and what parameter does it expect?", "context": "", "response": "function theme_trigger_display($variables): returns the HTML for the form that displays actions assigned to a trigger, building a table with name and operation if there are assigned actions or rendering only the element's children if there are none.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eb555b55a4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21module.inc/function/module_invoke/7.x", "instruction": "How is a hook invoked in a specific module using module_invoke in Drupal 7?", "context": "", "response": "function module_invoke($module, $hook): Invokes the implementation of a hook in the indicated module, passing additional arguments by value and returning the result of the hook function.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eb5c4f9480", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21password.inc/function/_password_itoa64/7.x", "instruction": "What does the function _password_itoa64 return in Drupal 7?", "context": "", "response": "function _password_itoa64(): returns a character string used to map an integer to the corresponding base 64 character.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eba78dac4b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7018/7.x", "instruction": "What does the function system_update_7018 do in Drupal 7?", "context": "", "response": "function system_update_7018(): shortens the system.type column and modifies the schema indexes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ebc10956fc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.inc/function/openid_extract_ax_values/7.x", "instruction": "What does the method openid_extract_ax_values of the OpenID class do in Drupal?", "context": "", "response": "function openid_extract_ax_values($values, $uris): extracts values from an OpenID AX response and returns them in an array", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ebe81521ed", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_get_html_head/7.x", "instruction": "What does the function drupal_get_html_head do in Drupal?", "context": "", "response": "function drupal_get_html_head(): Gets the content to be displayed in the HTML page tag.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ec11bb12fe", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.core.inc/function/install_display_output/7.x", "instruction": "What does the function install_display_output do in Drupal 7 during the installation process?", "context": "", "response": "function install_display_output($output, $install_state): Displays the themed installer output and ends the page request.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ec27c8fef4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21trigger%21trigger.admin.inc/function/trigger_unassign_submit/7.x", "instruction": "What does the function trigger_unassign_submit($form, &$form_state) do in Drupal?", "context": "", "response": "function trigger_unassign_submit($form, &$form_state): Processes the unassignment form submission, removes action assignments, displays a confirmation message, and redirects to the triggers admin.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ec30b483c1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_ranking/7.x", "instruction": "What does the function node_ranking() return when implementing hook_ranking() in Drupal 7?", "context": "", "response": "function node_ranking(): returns an array with ranking options: relevance, sticky, promote, and optionally recently published based on created or changed date.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ec37061fe6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_search_status/7.x", "instruction": "What does the function node_search_status return in Drupal 7?", "context": "", "response": "function node_search_status(): returns an array with the number of nodes pending indexing ('remaining') and the total number of nodes ('total') for search status.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ec4545b23b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21stream_wrappers.inc/constant/STREAM_WRAPPERS_ALL/7.x", "instruction": "What does the constant STREAM_WRAPPERS_ALL represent in Drupal 7?", "context": "", "response": "define('STREAM_WRAPPERS_ALL', 0x0);: It is a filter flag that matches all stream wrappers.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-ec5d5ffb96", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21module.inc/function/module_hook/7.x", "instruction": "What does the function module_hook of the class module_hook do in Drupal?", "context": "", "response": "function module_hook($module, $hook): Determines whether a module implements a specific hook, checking that the module is installed and enabled and that the hook is implemented in that module.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ec61cca54e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_entity_info/7.x", "instruction": "What entity type does the function system_entity_info define in Drupal 7?", "context": "", "response": "function system_entity_info(): returns an array that declares the 'file' entity with its label, base table 'file_managed', entity keys (id 'fid' and label 'filename'), and disables static cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ec6cd3f0c9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.api.php/function/hook_user_view_alter/7.x", "instruction": "How does hook_user_view_alter allow modifying the presentation of a user in Drupal 7?", "context": "", "response": "function hook_user_view_alter(&$build): allows altering the user's renderable array after assembly, modifying field weights or adding #post_render callbacks to act on rendered HTML.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ec6d0b3658", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/template_preprocess_username/7.x", "instruction": "What does the function template_preprocess_username do in Drupal 7?", "context": "", "response": "function template_preprocess_username(&$variables): preprocesses the variables that will be passed to the theme function theme_username().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ec751de5a2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/drupal_realpath/7.x", "instruction": "What does the function drupal_realpath do in Drupal 7 and when should it be used?", "context": "", "response": "function drupal_realpath($uri): resolves the local absolute path of a URI or file path, but its use is discouraged except when the stream wrapper uses the local file system and an absolute path is needed for a function incompatible with stream URIs.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ec77d8bb5e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_sort_weight/7.x", "instruction": "How does the callback drupal_sort_weight work to sort arrays by their 'weight' element in Drupal 7?", "context": "", "response": "function drupal_sort_weight($a, $b): compares two associative elements by their 'weight' key (using 0 as default if missing) and returns -1, 0, or 1 for uasort().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ec91d13e15", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_type_checkbox_value/7.x", "instruction": "What does the function form_type_checkbox_value do in Drupal 7 to determine the value of a checkbox form element?", "context": "", "response": "function form_type_checkbox_value($element, $input = FALSE): Returns the value that will appear in $form_state['values'] for the checkbox element, using its default value when there is no input and the return value when there is input.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ec9cc5f778", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.admin.inc/function/taxonomy_overview_vocabularies/7.x", "instruction": "What is the purpose of the function taxonomy_overview_vocabularies($form) in the taxonomy module of Drupal 7?", "context": "", "response": "function taxonomy_overview_vocabularies($form): Builds a form to list and manage taxonomy vocabularies.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ecab40d9b5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.settings.inc/function/update_settings_validate/7.x", "instruction": "What does the function update_settings_validate do in Drupal 7 and what parameters does it receive?", "context": "", "response": "function update_settings_validate($form, &$form_state): Validates the email addresses in the update settings form, ensuring they are correctly formatted.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ecabade582", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.api.php/function/hook_file_download_access/7.x", "instruction": "How does hook_file_download_access work to control file download access in Drupal 7?", "context": "", "response": "function hook_file_download_access($file_item, $entity_type, $entity): controls file download access by allowing it to be limited based on the entity to which they are referenced, returning TRUE to allow or FALSE to deny (although denial can be overridden by another handler).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ecd4b42afe", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/themes%21garland%21template.php/function/garland_preprocess_maintenance_page/7.x", "instruction": "What does the garland_preprocess_maintenance_page function do in the Drupal 7 Garland theme and why does it need to call garland_preprocess_html?", "context": "", "response": "function garland_preprocess_maintenance_page(&$variables): overrides or inserts variables in the maintenance template, delegating to garland_preprocess_html because the maintenance page markup is all in a single template.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ecd58c9a91", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_vocabulary_delete/7.x", "instruction": "What does the taxonomy_vocabulary_delete function do in Drupal 7 and what parameter does it receive?", "context": "", "response": "function taxonomy_vocabulary_delete($vid): Deletes a taxonomy vocabulary, updating reference fields and deleting associated terms.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ecd82263db", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21trigger%21trigger.module/function/trigger_user_insert/7.x", "instruction": "What does the trigger_user_insert function do in Drupal 7?", "context": "", "response": "function trigger_user_insert(&$edit, $account, $category): Implements hook_user_insert and notifies the user_insert event.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ecf812e690", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21blog%21blog.pages.inc/function/blog_feed_user/7.x", "instruction": "What does the blog_feed_user function do in Drupal 7?", "context": "", "response": "function blog_feed_user($account): Displays an RSS feed with the recent blog entries of a given user.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ed2218f062", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.module/function/aggregator_theme/7.x", "instruction": "What theme hooks does the aggregator_theme function of the aggregator module define in Drupal 7?", "context": "", "response": "function aggregator_theme(): implements hook_theme() and returns an array with theme hook definitions for aggregator templates such as aggregator_wrapper, aggregator_feed_source, aggregator_block_item, aggregator_summary_items, aggregator_summary_item, aggregator_item, aggregator_page_opml and aggregator_page_rss, specifying variables, files and associated templates.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ed4c61b76e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_update_forbid/7.x", "instruction": "When and how can a module prevent a field update in Drupal 7?", "context": "", "response": "function hook_field_update_forbid($field, $prior_field, $has_data): Allows any module to forbid a field update by throwing FieldUpdateForbiddenException if the change would affect existing data or external dependencies.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ed520c94b0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_comment_unpublish/7.x", "instruction": "What does the forum_comment_unpublish function do in Drupal 7?", "context": "", "response": "function forum_comment_unpublish($comment): Implements hook_comment_unpublish() and updates the forum index via _forum_update_forum_index($comment->nid).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ed5ec3b636", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.install/function/user_update_7012/7.x", "instruction": "What does the user_update_7012(&$sandbox) function do in Drupal 7?", "context": "", "response": "function user_update_7012(&$sandbox): migrates user images to the managed file system, adding the picture_fid field and moving files to the {file_managed} table via a batch process.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ed62390bd6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21statistics%21statistics.module/function/statistics_update_index/7.x", "instruction": "What does the statistics_update_index function do when implementing hook_update_index in Drupal 7?", "context": "", "response": "function statistics_update_index(): calculates and saves in variable_set the value node_cron_views_scale as 1.0 divided by the maximum totalcount of the node_counter table (with a minimum of 1).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ed626a64b9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21text%21text.module/function/text_field_widget_settings_form/7.x", "instruction": "What does the text_field_widget_settings_form function do in Drupal 7 and what parameters does it receive?", "context": "", "response": "function text_field_widget_settings_form($field, $instance): implements hook_field_widget_settings_form() to define the widget settings form, adding 'size' if it is text_textfield or 'rows' otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ed63e9164c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_hook_info_alter/7.x", "instruction": "How is the information returned by hook_hook_info() altered by implementing hook_hook_info_alter() in Drupal 7?", "context": "", "response": "function hook_hook_info_alter(&$hooks): Allows directly modifying the array of hook information collected by hook_hook_info().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ed713d45aa", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/_system_info_add_path/7.x", "instruction": "What does the _system_info_add_path function do in Drupal 7 and how does it process .info file arrays?", "context": "", "response": "function _system_info_add_path($info, $path): prefixes all values of a .info array with a given path, recursively traversing nested arrays and replacing each value with the path concatenated with the original value.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ed7fb5945e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7032/7.x", "instruction": "What does the update function system_update_7032 do in Drupal 7.x?", "context": "", "response": "function system_update_7032(): Changes the hostname field to identifier in the {flood} table, removes the old index, redefines the field as varchar(128) NOT NULL with an empty default value, and creates a new composite index on event, identifier, and timestamp.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ed84adc925", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/_forum_get_topic_order/7.x", "instruction": "What does the _forum_get_topic_order function do in Drupal 7 and what parameters does it receive?", "context": "", "response": "function _forum_get_topic_order($sortby): obtains the topic sorting information according to an integer code and returns an array with the SQL field and sorting direction.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eda2de0bb3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/_form_validate/7.x", "instruction": "How does the _form_validate function perform form element validation in Drupal 7?", "context": "", "response": "function _form_validate(&$elements, &$form_state, $form_id = NULL): Performs validation of form elements, checking required fields, #maxlength, valid options, and executing user-defined validators.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eda9e2f28b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_form_node_type_form_alter/7.x", "instruction": "What does the locale_form_node_type_form_alter function do in Drupal 7?", "context": "", "response": "function locale_form_node_type_form_alter(&$form, &$form_state): Adds a 'Multilingual support' radio field to the content type form to enable or disable multilingual support.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-edaa4f0a3e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_permissions_get_configured_types/7.x", "instruction": "What does the function node_permissions_get_configured_types do in Drupal 7 and what node types does it return?", "context": "", "response": "function node_permissions_get_configured_types(): returns an array with the node types that should be managed by permissions, excluding those where the variable node_permissions_$type is set to 0.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-edb386de1d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/constant/SAVED_UPDATED/7.x", "instruction": "What does the constant SAVED_UPDATED indicate in the Drupal 7 API?", "context": "", "response": "define('SAVED_UPDATED', 2);: Indicates that the save operation resulted in the update of an existing item.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-edbb93ed63", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21path%21path.admin.inc/function/path_admin_filter_form_submit_filter/7.x", "instruction": "What does the function path_admin_filter_form_submit_filter do in Drupal 7?", "context": "", "response": "function path_admin_filter_form_submit_filter($form, &$form_state): redirects to the URL alias list applying the filter value submitted by the form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-edbc255051", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21rdf%21rdf.module/function/rdf_preprocess_taxonomy_term/7.x", "instruction": "What does the function rdf_preprocess_taxonomy_term do in Drupal 7?", "context": "", "response": "function rdf_preprocess_taxonomy_term(&$variables): Adds the RDF type of the term and its name in a tag to the variables array for the taxonomy term template.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-edbd11c695", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.info.inc/function/field_info_instances/7.x", "instruction": "What does the function field_info_instances do in Drupal 7 and how do its parameters $entity_type and $bundle_name behave?", "context": "", "response": "function field_info_instances($entity_type = NULL, $bundle_name = NULL): retrieves information about field instances, returning all instances or filtering by entity type and bundle according to the provided parameters.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eddc830a81", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21language.inc/function/language_negotiation_get/7.x", "instruction": "How do you check if a language negotiation provider is enabled for a language type in Drupal 7?", "context": "", "response": "function language_negotiation_get($type, $provider_id = NULL): returns the provider ID if enabled for the given type, or the first enabled provider if no ID is specified; returns FALSE if not enabled.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ede03637be", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21form.api.php/function/callback_batch_operation/7.x", "instruction": "What does the function callback_batch_operation do in Drupal 7 and what is its exact signature?", "context": "", "response": "function callback_batch_operation($MULTIPLE_PARAMS, &$context): is the callback for batch_set() that executes an individual batch operation, using the context passed by reference to persist data between executions and report progress.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-edf63d5ded", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_load_multiple/7.x", "instruction": "How is the function node_load_multiple used to load multiple nodes in Drupal 7?", "context": "", "response": "function node_load_multiple($nids = array(), $conditions = array(), $reset = FALSE): Loads node entities from the database, allowing multiple nodes to be loaded at once and caching them to avoid repeated database accesses during the same request.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ee3cd26cea", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/function/block_user_role_delete/7.x", "instruction": "What does the function block_user_role_delete do when a user role is deleted in Drupal 7?", "context": "", "response": "function block_user_role_delete($role): removes entries from the block_role table associated with the deleted role to unlink it from blocks that used it.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ee6df9d1ff", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/constant/ERROR_REPORTING_DISPLAY_ALL/7.x", "instruction": "What value and purpose does the constant ERROR_REPORTING_DISPLAY_ALL have in Drupal 7?", "context": "", "response": "define('ERROR_REPORTING_DISPLAY_ALL', 2);: Defines the error reporting level to display all messages.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-ee6f6f4f10", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_json_encode/7.x", "instruction": "What does the function drupal_json_encode do in Drupal 7 and how does it ensure HTML safety when converting a PHP variable?", "context": "", "response": "function drupal_json_encode($var): converts a PHP variable into its JavaScript equivalent using HTML-safe strings with several escaped characters.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ee70194091", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21rdf%21rdf.module/function/rdf_modules_uninstalled/7.x", "instruction": "What does the function rdf_modules_uninstalled do in Drupal 7 and what hook does it implement?", "context": "", "response": "function rdf_modules_uninstalled($modules): Implements hook_modules_uninstalled(); pending removal of RDF mappings from uninstalled modules.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ee7057c981", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.attach.inc/function/field_attach_create_bundle/7.x", "instruction": "What does the function field_attach_create_bundle do in Drupal when a new bundle is created for an entity?", "context": "", "response": "function field_attach_create_bundle($entity_type, $bundle): Notifies field.module that a new bundle has been created, clears the field cache, and invokes hook_field_attach_create_bundle in all modules to allow them to react to the bundle creation.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ee723eee8f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21trigger%21trigger.module/function/trigger_get_assigned_actions/7.x", "instruction": "How are the IDs of actions assigned to a specific hook obtained in Drupal using the function trigger_get_assigned_actions?", "context": "", "response": "function trigger_get_assigned_actions($hook): Retrieves the IDs of actions the user has associated with the given hook, returning an array whose keys are action IDs and whose values are arrays with the type and label of each action.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ee733f5ec1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.admin.inc/function/user_admin_role_validate/7.x", "instruction": "What default values does node_type_set_defaults assign to module-defined node types in Drupal 7?", "context": "", "response": "function user_admin_role_validate($form, &$form_state): Sets the default values of a node type, with 'custom' at 0 and 'locked' at 1 for module-defined types.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ee8bb18618", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_type_set_defaults/7.x", "instruction": "What default values does node_type_set_defaults assign to module-defined node types in Drupal 7?", "context": "", "response": "function node_type_set_defaults($info = array()): It sets the default values of a node type, with 'custom' set to 0 and 'locked' set to 1 for module-defined types.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eeafd93e70", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_modules_enabled/7.x", "instruction": "What logic does hook_modules_enabled() in the Drupal 7 node module execute when modules are enabled?", "context": "", "response": "function node_modules_enabled($modules): rebuilds the node_access table if any of the enabled modules implements node_grants and rebuild is not already needed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eebb8cb12a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21color%21color.module/function/_color_blend/7.x", "instruction": "What does the _color_blend function do in Drupal 7?", "context": "", "response": "function _color_blend($img, $hex1, $hex2, $alpha): blends two hexadecimal colors and returns the resulting GD color.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eebc6bd2b3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_tree_collect_node_links/7.x", "instruction": "How does the menu_tree_collect_node_links function work to collect node links from a menu tree in Drupal 7?", "context": "", "response": "function menu_tree_collect_node_links(&$tree, &$node_links): recursively traverses the menu tree, identifies links with router_path 'node/%', extracts the nid from link_path, and if numeric stores it in node_links disabling its access.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eebef2b0b0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21select.inc/class/SelectQuery/7.x", "instruction": "How is a tag added to a SELECT query in Drupal 7 so it can be altered by hooks?", "context": "", "response": "public function addTag($tag): Adds a tag to the query's alterTags array, allowing modules to alter the query via hooks like hook_query_TAG_alter(); returns $this for chaining.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-eec12c139d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.admin.inc/function/menu_delete_menu_page/7.x", "instruction": "What does the menu_delete_menu_page function do in Drupal 7 and how does it control deletion of custom menus?", "context": "", "response": "function menu_delete_menu_page($menu): verifies the menu is not a system menu and returns a confirmation form to delete a custom menu.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eef3891603", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7027/7.x", "instruction": "What does the system_update_7027 function do in a Drupal 6.x to 7.x update?", "context": "", "response": "function system_update_7027(): Enables text, number, list, and options field type modules via module_enable.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-eef42cdf50", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.admin.inc/function/_field_ui_field_name_exists/7.x", "instruction": "What does the _field_ui_field_name_exists function do in Drupal 7 and how does it determine if a field name is taken?", "context": "", "response": "function _field_ui_field_name_exists($value): Checks if a field machine name is in use, including inactive fields, by adding the 'field_' prefix and querying existing fields.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ef27875ffd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/constant/DRUPAL_WEIGHT_SELECT_MAX/7.x", "instruction": "What is the value and function of the DRUPAL_WEIGHT_SELECT_MAX constant in Drupal 7?", "context": "", "response": "define('DRUPAL_WEIGHT_SELECT_MAX', 100);: Sets the maximum number of values in a weight select element, switching to a text field if that limit is exceeded.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-ef339bdc93", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_form_search_form_alter/7.x", "instruction": "What does the function node_form_search_form_alter do in Drupal 7?", "context": "", "response": "function node_form_search_form_alter(&$form, $form_state): adds advanced search options (keywords, content types, and languages) to the search form when the user has the 'use advanced search' permission.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ef4171ff35", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.install/function/locale_update_7005/7.x", "instruction": "What does the update function locale_update_7005 do in Drupal 7?", "context": "", "response": "function locale_update_7005(): Increases the length of the formula column in the languages table to 255 characters to allow longer plural formulas.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ef5a63c091", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_field_validate/7.x", "instruction": "How does the function taxonomy_field_validate validate taxonomy field values against configured allowed values?", "context": "", "response": "function taxonomy_field_validate($entity_type, $entity, $field, $instance, $langcode, $items, &$errors): implements hook_field_validate() to check that terms referenced in the field belong to the vocabularies or subtrees allowed in the field configuration, and logs the error 'taxonomy_term_reference_illegal_value' when a term does not match.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ef66154e87", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/constant/IMAGE_DERIVATIVE_TOKEN/7.x", "instruction": "What is the constant IMAGE_DERIVATIVE_TOKEN of the Drupal 7 image module and what is it used for?", "context": "", "response": "define('IMAGE_DERIVATIVE_TOKEN', 'itok');: Defines the query parameter name ('itok') used for image derivative tokens.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-efa1cb5df3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21xmlrpcs.inc/function/xmlrpc_server_set/7.x", "instruction": "What does the function xmlrpc_server_set do in Drupal 7 and what value does it return?", "context": "", "response": "function xmlrpc_server_set($xmlrpc_server = NULL): temporarily stores a copy of an XML-RPC request and returns the last stored request.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-efdd795ea5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_edit_access/7.x", "instruction": "What does the function user_edit_access do in Drupal?", "context": "", "response": "function user_edit_access($account): Checks access to edit a user account.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-efe8d37d73", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/class/NodeController/7.x", "instruction": "What does the attachLoad method of the NodeController class do in Drupal 7 when loading nodes?", "context": "", "response": "protected function attachLoad(&$nodes, $revision_id = FALSE): groups nodes by content type, invokes type-specific callbacks if they exist, and passes the loaded types as an argument to hook_node_load before delegating to the parent.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-efe9096187", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_settings_initialize/7.x", "instruction": "What does the function drupal_settings_initialize do in Drupal 7?", "context": "", "response": "function drupal_settings_initialize(): sets the base URL, cookie domain, and session name from the configuration.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-efefc3b56c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_cancel/7.x", "instruction": "What does the user_cancel function do in Drupal 7 and how is it used to cancel a user account?", "context": "", "response": "function user_cancel($edit, $uid, $method): Cancels a user account by initiating a batch process, invoking hook_user_cancel, and preparing final deletion.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-efff6b1617", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/_drupal_load_stylesheet/7.x", "instruction": "What does the _drupal_load_stylesheet function do in Drupal 7 and how does it process CSS imports?", "context": "", "response": "function _drupal_load_stylesheet($matches): Loads stylesheets recursively and returns their content with url() paths corrected relative to the file directory.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f016a4a4c7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/map_month/7.x", "instruction": "What does the map_month function do in Drupal 7?", "context": "", "response": "function map_month($month): Returns the translated abbreviated month name for the given month number (1-12) using a static cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f029eb7166", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.field.inc/function/theme_file_widget_multiple/7.x", "instruction": "What does the theme_file_widget_multiple function do in Drupal 7?", "context": "", "response": "function theme_file_widget_multiple($variables): Returns the HTML for a group of file upload widgets.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f02ba4d3c3", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7058/7.x", "instruction": "What does the system_update_7058 function do in Drupal 7?", "context": "", "response": "function system_update_7058(): Removes the cron semaphore variable (cron_semaphore).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f02f9a2d7c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_theme_settings/7.x", "instruction": "How does the system_theme_settings function build the theme settings form for the entire site or an individual theme in Drupal 7?", "context": "", "response": "function system_theme_settings($form, &$form_state, $key = ''): Generates a form with display options (logo, name, slogan, favicon, menus), logo and favicon settings (including file upload), and delegates theme engine and base theme specific settings when a theme name is provided.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f0303502dd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/db_ignore_slave/7.x", "instruction": "What does the db_ignore_slave() function do in Drupal?", "context": "", "response": "function db_ignore_slave(): Sets a session variable specifying the delay time to ignore a slave server.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f0348fc37b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.processor.inc/function/aggregator_aggregator_process_info/7.x", "instruction": "What information does the aggregator_aggregator_process_info function return in Drupal 7?", "context": "", "response": "function aggregator_aggregator_process_info(): Returns an array with the title 'Default processor' and description 'Creates lightweight records from feed items' for the default aggregator processor.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f03cad65e7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21field_sql_storage%21field_sql_storage.module/function/_field_sql_storage_write_compare_filter/7.x", "instruction": "What does the function _field_sql_storage_write_compare_filter do in Drupal 7's field SQL storage?", "context": "", "response": "function _field_sql_storage_write_compare_filter($field, $array): Clears field values by removing empty ones and those that do not correspond to storable columns, and sorts indexes to prepare for later comparison.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f05fe910d5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.module/function/update_mail/7.x", "instruction": "What does the function update_mail do in Drupal 7 and how is it used to generate update notification email?", "context": "", "response": "function update_mail($key, &$message, $params): Builds the email notification message when the site is outdated, setting the subject and body from the provided parameters.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f069a5109b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_menu_link_alter/7.x", "instruction": "What does the function user_menu_link_alter do in Drupal 7?", "context": "", "response": "function user_menu_link_alter(&$link): modifies menu links to hide the 'user' link from anonymous users and forces the logout link to appear at the top level of the user-menu.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f07fc06e1a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_add_date_formats_form_submit/7.x", "instruction": "How does Drupal 7 process the submission of a new custom date format through system_add_date_formats_form_submit?", "context": "", "response": "function system_add_date_formats_form_submit($form, &$form_state): Saves a custom date format (new or updated) to the database using system_date_format_save and redirects the user to the date format administration page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f08c9e7f63", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21prefetch.inc/class/DatabaseStatementPrefetch/7.x", "instruction": "What does the fetchAssoc method of the DatabaseStatementPrefetch class do in Drupal 7?", "context": "", "response": "public function fetchAssoc(): returns the next row as an associative array.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-f097eea126", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dashboard%21dashboard.module/function/dashboard_permission/7.x", "instruction": "What does the function dashboard_permission do in Drupal?", "context": "", "response": "function dashboard_permission(): Implements hook_permission to define the 'access dashboard' permission with its title and description.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f0a898d53e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.module/function/profile_category_access/7.x", "instruction": "How does the function profile_category_access work in Drupal 7 to control access to profile categories?", "context": "", "response": "function profile_category_access($account, $category): checks whether a user has access to a profile category, allowing full access to administrators or if the category has visible fields and the user can edit.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f0a904fcf2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21session.inc/function/_drupal_session_read/7.x", "instruction": "What does the function _drupal_session_read do in Drupal 7 and what object does it initialize?", "context": "", "response": "function _drupal_session_read($sid): reads a complete session from the database and initializes the $user object of the associated user.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f0aa4fe0f6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/db_update/7.x", "instruction": "What does the db_update function do in Drupal 7 and what object does it return?", "context": "", "response": "function db_update($table, array $options = array()): returns a new UpdateQuery object for the active database connection.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f0b9f3e083", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.admin.inc/function/forum_confirm_delete_submit/7.x", "instruction": "What does the forum_confirm_delete_submit function do in Drupal 7 and what is its role within the forum deletion confirmation form?", "context": "", "response": "function forum_confirm_delete_submit($form, &$form_state): Deletes the indicated forum taxonomy term, displays a confirmation message, logs the action via watchdog, and redirects to the forum structure administration page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f0e566a24f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/constant/LANGUAGE_RTL/7.x", "instruction": "What value does the LANGUAGE_RTL constant have in Drupal 7?", "context": "", "response": "define('LANGUAGE_RTL', 1);: Defines the LANGUAGE_RTL constant with value 1, indicating that the language is written right-to-left.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-f0ebe2196f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_unmanaged_delete_recursive/7.x", "instruction": "What does the file_unmanaged_delete_recursive function do in Drupal 7?", "context": "", "response": "function file_unmanaged_delete_recursive($path): recursively deletes all files and directories within the specified path; if it is a directory, processes its contents and then deletes it, and if it is a file, delegates to file_unmanaged_delete.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f15176e891", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.module/function/file_managed_file_save_upload/7.x", "instruction": "What does the file_managed_file_save_upload function do in the file module of Drupal 7 and what is its return value?", "context": "", "response": "function file_managed_file_save_upload($element): Saves uploaded files in a managed_file element, returning the file object representing the saved file or FALSE if no file was saved.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f15a2456bc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/function/locale_batch_by_component/7.x", "instruction": "What does the locale_batch_by_component function do in Drupal 7 when modules are installed or themes are enabled?", "context": "", "response": "function locale_batch_by_component($components, $finished = '_locale_batch_system_finished'): Prepares a batch to import translations of new components in all enabled languages of the site.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f15a6a1eb4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21path.inc/function/path_delete/7.x", "instruction": "What does the path_delete function do in Drupal 7?", "context": "", "response": "function path_delete($criteria): Deletes the URL alias indicated by $criteria by loading the record, deleting it from the url_alias table, invoking the path_delete hook, and clearing the path cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f15c0ad718", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21statistics%21statistics.module/function/statistics_user_cancel/7.x", "instruction": "What does the statistics_user_cancel function do when hook_user_cancel is invoked with the 'user_cancel_reassign' method in Drupal 7?", "context": "", "response": "function statistics_user_cancel($edit, $account, $method): updates the accesslog table setting the uid to 0 for entries of the cancelled user, reassigning its accesses to the anonymous user.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f182efee35", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.admin.inc/function/taxonomy_form_term_validate/7.x", "instruction": "What does the function taxonomy_form_term_validate do in the taxonomy term form in Drupal 7?", "context": "", "response": "function taxonomy_form_term_validate($form, &$form_state): validates the term form by delegating to entity_form_field_validate and checks that the weight is numeric, showing an error if not.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f1c80bdcd7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.admin.inc/function/image_style_form/7.x", "instruction": "What is the exact signature of the function image_style_form in Drupal 7 for editing an image style?", "context": "", "response": "function image_style_form($form, &$form_state, $style): Form builder that allows editing the name and order of effects of an image style.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f1d3f71b89", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.tokens.inc/function/taxonomy_token_info/7.x", "instruction": "What does the function taxonomy_token_info do when implementing hook_token_info in Drupal 7?", "context": "", "response": "function taxonomy_token_info(): Defines the token types 'term' and 'vocabulary' and their sub-tokens (tid, name, description, node-count, url, vid, etc.) and returns the array that registers those tokens for the token replacement system.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f2011e5276", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_add_html_head_link/7.x", "instruction": "How is the function drupal_add_html_head_link used to add a LINK tag to the page HEAD in Drupal 7?", "context": "", "response": "function drupal_add_html_head_link($attributes, $header = FALSE): Adds a LINK tag with the specified attributes to the page HEAD, optionally allowing an HTTP 'Link:' header to be sent as well; overwrites any previous link with the same 'rel', 'href', and 'hreflang' attributes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f202f4abd1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.module/constant/AGGREGATOR_CLEAR_NEVER/7.x", "instruction": "What does the constant AGGREGATOR_CLEAR_NEVER mean in Drupal 7 and what effect does it have on feeds?", "context": "", "response": "define('AGGREGATOR_CLEAR_NEVER', 0);: indicates that feed items should never expire.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-f211063cf1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.api.php/function/hook_user_role_insert/7.x", "instruction": "What does the hook hook_user_role_insert do in Drupal 7 and when is it invoked?", "context": "", "response": "function hook_user_role_insert($role): allows modules to act on the user role object when it is saved to the database, typically to save additional custom data in own tables.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f2214a232a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/function/block_help/7.x", "instruction": "What does the function block_help($path, $arg) return that implements hook_help() in the Block module in Drupal 7?", "context": "", "response": "function block_help($path, $arg): Returns help text for the Block module, showing information about its usage, positioning, visibility, and creation of custom blocks based on the requested path.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f23a9401fb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/constant/MARK_NEW/7.x", "instruction": "What is the constant MARK_NEW in Drupal 7 and what is it used for?", "context": "", "response": "define('MARK_NEW', 1);: Marks content as new; it is one of the content markers used by theme_mark() and node_mark() to designate the content status.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-f2480f65de", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21tracker%21tracker.module/function/_tracker_remove/7.x", "instruction": "What does the _tracker_remove function do in Drupal 7 when nodes or comments are deleted?", "context": "", "response": "function _tracker_remove($nid, $uid = NULL, $changed = NULL): Clears indexed tracker data by removing subscriptions and updating timestamps when nodes or comments are deleted.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f288f82bff", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.module/function/shortcut_set_load/7.x", "instruction": "What does the shortcut_set_load function do in Drupal 7 and what value does it return when the shortcut set does not exist?", "context": "", "response": "function shortcut_set_load($set_name): Loads the data of a shortcut set by its name and returns an object with set_name, title, and links, or FALSE if it does not exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f28f339666", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_map_assoc/7.x", "instruction": "What does the drupal_map_assoc function do in Drupal 7 and how does it convert a linear array into an associative array?", "context": "", "response": "function drupal_map_assoc($array, $function = NULL): Converts a linear array into an associative array using the values of the original array as keys, and applies an optional function to the values if specified.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f2adefc1f1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.module/function/_element_validate_integer_positive/7.x", "instruction": "What does the obsolete _element_validate_integer_positive function do in Drupal 7?", "context": "", "response": "function _element_validate_integer_positive($element, &$form_state): Validates that the element value is an integer greater than zero, delegating to element_validate_integer_positive.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f2b9e74559", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/function/block_user_presave/7.x", "instruction": "What does the block_user_presave function do in Drupal 7 when a user is saved?", "context": "", "response": "function block_user_presave(&$edit, $account, $category): Implements hook_user_presave and copies the user's block configuration from $edit['block'] to $edit['data']['block'] if present.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f2bbec3a90", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_parse_url/7.x", "instruction": "What does the drupal_parse_url function do in Drupal 7 and how does it split an internal or external URL into its components?", "context": "", "response": "function drupal_parse_url($url): Parses a URL and returns an associative array with path, query (as an array of parameters), and fragment, grouping scheme, authority, and path into path for external URLs.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f2c0461ccb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21announcements_feed%21announcements_feed.inc/function/announcements_feed_filter_announcements/7.x", "instruction": "What does the announcements_feed_filter_announcements function do in Drupal 7 and what does it check about the feed announcements?", "context": "", "response": "function announcements_feed_filter_announcements($announcement): Filters announcements relevant to the Drupal version used and with a valid URL controlled by drupal.org, returning TRUE if both criteria are met.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f2c92a9f76", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/update.php/function/update_script_selection_form/7.x", "instruction": "What does the update_script_selection_form function do in Drupal?", "context": "", "response": "function update_script_selection_form($form, &$form_state): Builds a form that lists available database updates, resolves dependencies between modules, shows counts of pending updates, and emits warning messages for incompatible updates.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f2cf8f3ba2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_node_access/7.x", "instruction": "What does the hook hook_node_access do in Drupal 7 to control access to a node?", "context": "", "response": "function hook_node_access($node, $op, $account): allows modules to grant or deny access to a node for a user on a specific operation, returning NODE_ACCESS_ALLOW, NODE_ACCESS_DENY, or NODE_ACCESS_IGNORE based on the permission checks performed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f2d6b3442b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/class/Database/7.x", "instruction": "How is a database connection closed in Drupal 7 using the closeConnection method of the Database class?", "context": "", "response": "public static function closeConnection($target = NULL, $key = NULL): closes the connection to the server indicated by the key and target; if the target is NULL, it closes all connections for that key.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-f2e2ae8928", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_menu_local_tasks_alter/7.x", "instruction": "How is hook_menu_local_tasks_alter used in Drupal 7 to modify tabs and local actions before rendering?", "context": "", "response": "function hook_menu_local_tasks_alter(&$data, $router_item, $root_path): allows altering the tabs and actions displayed on the page by adding new elements or modifying existing ones in the $data array passed by reference.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f2eb64071b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/_drupal_flush_css_js/7.x", "instruction": "What does the function _drupal_flush_css_js do in Drupal 7?", "context": "", "response": "function _drupal_flush_css_js(): Changes the query string appended to CSS and JavaScript files to force browsers to reload the files.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f2fbc68823", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21statistics%21statistics.module/function/statistics_block_configure/7.x", "instruction": "What does the function statistics_block_configure of the statistics module do in Drupal 7?", "context": "", "response": "function statistics_block_configure($delta = ''): Implements hook_block_configure() to configure the number of items to display in the popular views lists of the statistics block.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f3027a0ec9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21color%21color.module/function/_color_save_stylesheet/7.x", "instruction": "What does the function _color_save_stylesheet do in the color module of Drupal 7?", "context": "", "response": "function _color_save_stylesheet($file, $style, &$paths): saves the rewritten stylesheet to disk using file_unmanaged_save_data, adds the file path to the paths array, and sets standard permissions with drupal_chmod.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f309282b57", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_user_timezone/7.x", "instruction": "What does the function system_user_timezone do in Drupal 7?", "context": "", "response": "function system_user_timezone(&$form, &$form_state): Adds the timezone field to user edit and registration forms.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f3174b33d4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/_drupal_trigger_error_with_delayed_logging/7.x", "instruction": "What is the _drupal_trigger_error_with_delayed_logging function used for in Drupal 7 and when should it be used instead of direct trigger_error()?", "context": "", "response": "function _drupal_trigger_error_with_delayed_logging($error_msg, $error_type = E_USER_NOTICE): invokes trigger_error() but delays the watchdog() call until the end of the request, preventing hook_watchdog() from interrupting low-level operations like a rebuild.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f319a1679a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupal_random_key/7.x", "instruction": "What does the drupal_random_key function return in Drupal 7 and how does it convert random bytes into a URL-safe string?", "context": "", "response": "function drupal_random_key($byte_count = 32): encodes random bytes in URL-safe base64, replacing + with -, / with _ and removing padding =.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f3262c818e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.admin.inc/function/theme_profile_admin_overview/7.x", "instruction": "What does the theme_profile_admin_overview function do in Drupal 7 and what parameters does it receive?", "context": "", "response": "function theme_profile_admin_overview($variables): Returns the HTML for the profile field overview form within a drag-and-drop table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f32c759b04", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_form_taxonomy_form_vocabulary_alter/7.x", "instruction": "What does the forum_form_taxonomy_form_vocabulary_alter function do in Drupal 7?", "context": "", "response": "function forum_form_taxonomy_form_vocabulary_alter(&$form, &$form_state, $form_id): adds a help message, sets the hierarchy to simple (value 1) and disables the delete action for the vocabulary designated as forum.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f33009a01e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_search_access/7.x", "instruction": "What does the hook_search_access() implemented by the user_search_access function do in Drupal?", "context": "", "response": "function user_search_access(): Implements hook_search_access() to control access to user profiles in Drupal.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f33842e92f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.pages.inc/function/user_page/7.x", "instruction": "What does the user_page function do in Drupal 7 and what does it return?", "context": "", "response": "function user_page(): It is a page callback that displays the user profile if authenticated or the login form for anonymous users, returning a render array for either case.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f3474435ba", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.module/constant/FIELD_BEHAVIOR_NONE/7.x", "instruction": "What does the FIELD_BEHAVIOR_NONE value indicate in the Drupal 7 field API?", "context": "", "response": "define('FIELD_BEHAVIOR_NONE', 0x1);: indicates that a widget does not accept default values.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-f347f60495", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7020/7.x", "instruction": "What does the system_update_7020 function do in Drupal 7 and what modules does it enable during the update from 6.x?", "context": "", "response": "function system_update_7020(): Enables the field_sql_storage, field and field_ui modules via module_enable without disabling their dependencies.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f36f6edbc2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21statistics%21statistics.module/function/statistics_block_info/7.x", "instruction": "What does the statistics_block_info() function do in Drupal 7?", "context": "", "response": "function statistics_block_info(): Implements hook_block_info and returns the 'Popular content' block (uncached) when the statistics_count_content_views variable is enabled.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f37936b2db", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/constant/REQUIREMENT_OK/7.x", "instruction": "What value and meaning does the REQUIREMENT_OK constant have in Drupal 7?", "context": "", "response": "define('REQUIREMENT_OK', 0);: indicates that a requirement has been met correctly, with numeric value 0.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-f3952e6df4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_create_filename/7.x", "instruction": "How does file_create_filename generate a unique file path from a base name and directory in Drupal 7?", "context": "", "response": "function file_create_filename($basename, $directory): creates a full path by combining directory and base name, removes control and reserved characters on Windows, and if the file already exists adds a numeric counter before the extension until a free name is obtained.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f3b5e0c32b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_library/7.x", "instruction": "What does hook_library do in Drupal 7 and what structure does it return?", "context": "", "response": "function hook_library(): registers JavaScript/CSS libraries associated with a module returning an array of arrays with readable key and data such as title, website, version, js, css and dependencies.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f3bdff173f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_menu/7.x", "instruction": "What menu items does the search_menu function define in Drupal 7?", "context": "", "response": "function search_menu(): Implements hook_menu() and registers the main search route, configuration and reindexing administration pages, and dynamically creates search tabs for each active search module with their respective routes and permissions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f3c837f298", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21statistics%21statistics.module/function/statistics_ranking/7.x", "instruction": "What does the statistics_ranking function in the statistics module do in Drupal 7?", "context": "", "response": "function statistics_ranking(): Implements hook_ranking and returns a ranking factor based on the number of content views when the statistics_count_content_views variable is enabled.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f3ea9f196d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21overlay%21overlay.module/function/overlay_init/7.x", "instruction": "What does the overlay_init function do in Drupal 7?", "context": "", "response": "function overlay_init(): Implements hook_init to determine whether the current request should be displayed in the main window or in the overlay, setting the corresponding mode and managing redirects and parameters according to context.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f3f78c0d0c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.admin.inc/function/locale_translate_export_po_form_submit/7.x", "instruction": "What does the locale_translate_export_po_form_submit function do when processing the translation export form submission?", "context": "", "response": "function locale_translate_export_po_form_submit($form, &$form_state): processes the submission of the template or translation export form, determines the language and exports the PO data.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f3fa493b4a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.install/function/taxonomy_update_7010/7.x", "instruction": "What does the function taxonomy_update_7010 do in Drupal 7 and what change does it make to the taxonomy_index table?", "context": "", "response": "function taxonomy_update_7010(): Changes the created field in the taxonomy_index table to a signed integer to properly support Unix timestamps for node creation.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f3ff92417c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_action_info/7.x", "instruction": "What does the function node_action_info define in Drupal 7 and what hook does it implement?", "context": "", "response": "function node_action_info(): Implements hook_action_info() returning an array with available actions for nodes, their labels, whether they are configurable, behaviors and triggers.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f406920d1e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.install/function/menu_update_7000/7.x", "instruction": "What does the function menu_update_7000 do in Drupal 7?", "context": "", "response": "function menu_update_7000(): Migrates the 'Default menu for content' setting from Drupal 6 to individual node types in Drupal 7, removing the old variable and assigning the default menu to each content type that does not have custom configuration.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f41205a3ed", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_theme/7.x", "instruction": "What does the function system_theme return when implementing hook_theme in Drupal 7?", "context": "", "response": "function system_theme(): Returns an array of system theme definitions, combining drupal_common_theme() with admin themes such as system_themes_page, system_settings_form, etc.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f418c395f7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21announcements_feed%21announcements_feed.inc/function/announcements_feed_validate_url/7.x", "instruction": "What does the function announcements_feed_validate_url do in Drupal?", "context": "", "response": "function announcements_feed_validate_url($url): Returns TRUE if the URL belongs to the drupal.org domain, FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f41a5eed99", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.field.inc/function/image_field_settings_form/7.x", "instruction": "What arguments does the function image_field_settings_form($field, $instance) need to implement hook_field_settings_form() in Drupal 7?", "context": "", "response": "function image_field_settings_form($field, $instance): Builds the settings form for an image field for the admin interface.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f41bedec1c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_admin_menu_block/7.x", "instruction": "What is the function system_admin_menu_block used for in Drupal 7 and what parameter does it expect?", "context": "", "response": "function system_admin_menu_block($item): Provides a single block on the admin summary page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f41e30eedc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21module.inc/function/module_list/7.x", "instruction": "What does the function module_list do in Drupal 7 and how are its parameters $refresh, $bootstrap_refresh, $sort and $fixed_list used?", "context": "", "response": "function module_list($refresh = FALSE, $bootstrap_refresh = FALSE, $sort = FALSE, $fixed_list = NULL): Returns an associative list of active modules, allowing forcing regeneration, sorting by name, or using a provided fixed list.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f41e500b4e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/constant/DRUPAL_NO_CACHE/7.x", "instruction": "What value and purpose does the constant DRUPAL_NO_CACHE have in Drupal 7?", "context": "", "response": "define('DRUPAL_NO_CACHE', -1);: Indicates that a block should not be cached, used for simple blocks or those that change frequently where querying the cache is more costly than generating the content directly.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-f425c78b29", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_entity_query_alter/7.x", "instruction": "What does the hook hook_entity_query_alter do in Drupal 7 and how is it used to alter an EntityFieldQuery?", "context": "", "response": "function hook_entity_query_alter($query): Allows altering or executing an EntityFieldQuery, modifying its executeCallback or detecting if it has already been altered.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f42865798f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.module/function/_menu_get_menu_weight_delta/7.x", "instruction": "How does _menu_get_menu_weight_delta calculate the delta for menu weight in Drupal 7?", "context": "", "response": "function _menu_get_menu_weight_delta($menu_names, $max_delta = NULL): Calculates the delta value to use for the weight element based on the maximum and minimum weight of the specified menus, applying an optional maximum and a minimum of 50.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f43d6d3a0a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21overlay%21overlay.module/function/overlay_request_refresh/7.x", "instruction": "How can I request that the Overlay parent window refresh a specific region of the page in Drupal 7?", "context": "", "response": "function overlay_request_refresh($region): Adds the specified region to the session so that the parent window refreshes it on the next page load.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f449c61851", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_actions_remove_orphans/7.x", "instruction": "What does the function system_actions_remove_orphans do in Drupal 7?", "context": "", "response": "function system_actions_remove_orphans(): removes actions that are in the database but not supported by any enabled module.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f453812fc2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21image.inc/function/image_save/7.x", "instruction": "What does the function image_save do in Drupal 7 and how is it used to save a manipulated image?", "context": "", "response": "function image_save(stdClass $image, $destination = NULL): Closes the image and saves the changes to a file, overwriting the original if no destination is specified, and updates the 'info' property if saved successfully.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f45d5fda7b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/parse_size/7.x", "instruction": "What does the function parse_size($size) do in Drupal 7?", "context": "", "response": "function parse_size($size): Converts a string representing a size (e.g., 2, 3K, 5MB) with optional unit prefix to its integer value in bytes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f471dca790", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21language.api.php/function/hook_language_types_info/7.x", "instruction": "How do I implement hook_language_types_info to define custom language types in Drupal 7?", "context": "", "response": "function hook_language_types_info(): Defines language types and returns an associative array with the definitions, including name, description, and optional fixed providers.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f4742cd1ae", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_add_module_assets/7.x", "instruction": "What does the function system_add_module_assets do in Drupal 7?", "context": "", "response": "function system_add_module_assets(): iterates through all modules' info and adds CSS and JavaScript files declared in their .info files using drupal_add_css and drupal_add_js with the option 'every_page' => TRUE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f476e473cf", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/themes%21bartik%21template.php/function/bartik_process_maintenance_page/7.x", "instruction": "What does the function bartik_process_maintenance_page(&$variables) do in the Bartik theme of Drupal 7?", "context": "", "response": "function bartik_process_maintenance_page(&$variables): overrides or inserts variables in the maintenance page template, adjusting the visibility of the site name and slogan.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f4abc74a3d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.admin.inc/function/_search_get_module_names/7.x", "instruction": "What does the function _search_get_module_names() do in Drupal 7?", "context": "", "response": "function _search_get_module_names(): gets the readable names of modules that provide search functionality, assigning each module to its readable name and returns the array sorted alphabetically.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f4b0b08691", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.core.inc/function/install_no_profile_error/7.x", "instruction": "What does the function install_no_profile_error() do in Drupal 7?", "context": "", "response": "function install_no_profile_error(): Indicates that no installation profiles are available, setting the page title and returning an explanatory message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f4c3a6c745", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.api.php/function/hook_block_info_alter/7.x", "instruction": "What does the hook hook_block_info_alter do in Drupal 7 and how is it used to modify block information before saving it to the database?", "context": "", "response": "function hook_block_info_alter(&$blocks, $theme, $code_blocks): Allows altering the block definitions before they are saved to the database.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f4cc21db6c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_send_email_action_validate/7.x", "instruction": "How does the function system_send_email_action_validate validate submissions of the send email action form in Drupal 7?", "context": "", "response": "function system_send_email_action_validate($form, $form_state): validates that the recipient is a valid email address or contains an email token like ':mail', and sets an error if not.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f4dbce570e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.module/constant/UPDATE_NOT_CURRENT/7.x", "instruction": "What does the constant UPDATE_NOT_CURRENT indicate in the Update module of Drupal 7?", "context": "", "response": "define('UPDATE_NOT_CURRENT', 4);: Indicates that a new version of the project is available, but it is not a security release.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-f4f38a1c01", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.multilingual.inc/function/_field_language_suggestion/7.x", "instruction": "How does the function _field_language_suggestion process a language suggestion in relation to available languages and what array does it return?", "context": "", "response": "function _field_language_suggestion($available_languages, $language_suggestion, $field_name): Returns an array of valid language codes; if a non-empty suggestion is provided and is in the list of available languages, it returns an array containing only that suggestion; otherwise, it returns the original array of available languages.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f4f859a3b9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.field.inc/function/image_field_widget_settings_form/7.x", "instruction": "What does the function image_field_widget_settings_form do in Drupal 7?", "context": "", "response": "function image_field_widget_settings_form($field, $instance): implements hook_field_widget_settings_form() for image fields, extending the file widget settings form with an image style selector for preview.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f50201c0e8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.field.inc/function/file_field_widget_form/7.x", "instruction": "How does the function file_field_widget_form generate the form element for a file field in Drupal 7 when implementing hook_field_widget_form?", "context": "", "response": "function file_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element): Builds and returns the form elements array for the file field widget, using managed_file and adjusting default values, cardinality, and additional properties.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f508c9fff2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/_menu_navigation_links_rebuild/7.x", "instruction": "What does the function _menu_navigation_links_rebuild do in Drupal 7's menu system?", "context": "", "response": "function _menu_navigation_links_rebuild($menu): Builds menu links from menu router items.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f50deb0a37", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/constant/MENU_NORMAL_ITEM/7.x", "instruction": "What is the constant MENU_NORMAL_ITEM used for in Drupal 7?", "context": "", "response": "define('MENU_NORMAL_ITEM', MENU_VISIBLE_IN_TREE | MENU_VISIBLE_IN_BREADCRUMB);: defines a normal menu item type that appears in the menu tree and breadcrumbs, and that the administrator can move or hide; it is the default value if no other menu item type is specified.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-f521eeded2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dashboard%21dashboard.api.php/function/hook_dashboard_regions/7.x", "instruction": "What does hook_dashboard_regions return and what is its purpose in Drupal 7's Dashboard module?", "context": "", "response": "function hook_dashboard_regions(): Returns an associative array where the keys are the dashboard region names and the values are the titles displayed in the block administration interface; the keys are also used as theme wrapper functions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f52aca9c9d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_storage_query/7.x", "instruction": "What does hook_field_storage_query do in Drupal 7 when executing an EntityFieldQuery?", "context": "", "response": "function hook_field_storage_query($query): executes an EntityFieldQuery to find entities with certain entity and field conditions, and sorts them according to the specified field order.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f533caf79b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_entity_info_alter/7.x", "instruction": "What does the function book_entity_info_alter do in Drupal 7's Book module?", "context": "", "response": "function book_entity_info_alter(&$info): adds the 'Print' view mode for nodes to the entity info array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f54363ee6c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/theme_comment_block/7.x", "instruction": "What does the function theme_comment_block do in Drupal 7?", "context": "", "response": "function theme_comment_block(): Returns the HTML for a list of recent comments to display in the comments block.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f54a6ff5b6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.pages.inc/function/book_outline/7.x", "instruction": "What does the book_outline function in Drupal do and what value does it return?", "context": "", "response": "function book_outline($node): Displays the outline form of a book node and returns an HTML string with that form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f556795c1f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.module/function/locale_system_update/7.x", "instruction": "What does the locale_system_update function in Drupal 7 do when installing modules or themes?", "context": "", "response": "function locale_system_update($components): imports translations of the indicated components, either directly or via batch if there are multiple files to import.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f557ce5043", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/update.php/function/update_helpful_links/7.x", "instruction": "What does the update_helpful_links function in Drupal do?", "context": "", "response": "function update_helpful_links(): Provides links to the main page and administration pages. Displays the update script results along with any errors found.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f5601e01c7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/constant/FILE_EXECUTABLE/7.x", "instruction": "What is the FILE_EXECUTABLE constant and what is its function in Drupal?", "context": "", "response": "define('FILE_EXECUTABLE', 8);: It is a constant that defines the value 8 to indicate that a file is executable, related to file permission checks in Drupal.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-f578f9ecdb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/profiles%21minimal%21minimal.profile/function/minimal_form_install_configure_form_alter/7.x", "instruction": "What does the minimal_form_install_configure_form_alter method of the profiles.minimal.minimal.profile class do in Drupal?", "context": "", "response": "function minimal_form_install_configure_form_alter(&$form, $form_state): Implements hook_form_FORM_ID_alter() for install_configure_form(), allowing the profile to alter the site configuration form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f57bc161be", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_user_login/7.x", "instruction": "What does system_user_login do in Drupal 7 when implementing hook_user_login() when the user's timezone is null?", "context": "", "response": "function system_user_login(&$edit, $account): notifies the user to configure their timezone if it is null and the configurable_timezones and empty_timezone_message variables are active.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f58ad34376", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.pages.inc/function/taxonomy_term_page/7.x", "instruction": "What does the taxonomy_term_page($term) function do in Drupal 7?", "context": "", "response": "function taxonomy_term_page($term): Displays the page with all nodes associated with a taxonomy term.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f5975d1608", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/template_preprocess_comment_wrapper/7.x", "instruction": "What does the template_preprocess_comment_wrapper function do in Drupal 7 and what variables does it prepare for the comment-wrapper.tpl.php template?", "context": "", "response": "function template_preprocess_comment_wrapper(&$variables): prepares contextual variables for the comment-wrapper.tpl.php template by assigning the node, the comment display mode, and the comment form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f5a4065f55", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.module/function/profile_save_profile/7.x", "instruction": "How does the profile_save_profile function save a user's profile fields in Drupal 7?", "context": "", "response": "function profile_save_profile(&$edit, $account, $category, $register = FALSE): retrieves the fields from the specified category, serializes those that require it, and stores each value in the profile_value table using db_merge with a composite key fid/uid.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f5b8b12b02", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.install/function/node_update_dependencies/7.x", "instruction": "What update dependencies does the node_update_dependencies function declare in Drupal 7?", "context": "", "response": "function node_update_dependencies(): defines the update dependencies of the node module, indicating that node_update_7006 requires system 7027 and filter 7000, and node_update_7008 requires user 7007.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f5bcb8e1a6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_date_format_type_delete/7.x", "instruction": "What does the system_date_format_type_delete function do in Drupal 7?", "context": "", "response": "function system_date_format_type_delete($type): removes from the database all entries related to the date format type specified by its machine-readable name.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f5cf4f0e91", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_touch_node/7.x", "instruction": "What does the search_touch_node($nid) function do in Drupal 7?", "context": "", "response": "function search_touch_node($nid): updates the node's changed timestamp to the current time to force its reindexing.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f5d1837307", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.admin.inc/function/theme_field_ui_table/7.x", "instruction": "What does the theme_field_ui_table function do in Drupal 7 and what does it return?", "context": "", "response": "function theme_field_ui_table($variables): returns the HTML for the Field UI summary tables by building rows region by region from the form elements.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f5f9496aec", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21profile%21profile.module/function/profile_user_insert/7.x", "instruction": "What does the profile_user_insert function do, which implements hook_user_insert in Drupal 7?", "context": "", "response": "function profile_user_insert(&$edit, $account, $category): Saves the user's profile when inserting an account by calling profile_save_profile with the fourth argument TRUE.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f5fe72af84", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_form_node_form_alter/7.x", "instruction": "How does the forum_form_node_form_alter function alter the node creation/editing form to require a single forum vocabulary term and set its default value from the URL?", "context": "", "response": "function forum_form_node_form_alter(&$form, &$form_state, $form_id): Marks the taxonomy_forums field as required and single-valued, and if it has no default value initializes it with the forum ID obtained from the URL.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f606ad8eaf", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.updater.inc/class/ThemeUpdater/7.x", "instruction": "What does the getInstallDirectory method of the ThemeUpdater class do in Drupal 7?", "context": "", "response": "public function getInstallDirectory(): returns the absolute directory where a theme should be installed: if already installed it uses its current path, and if new it places it in sites/all/themes.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-f612b014aa", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.admin.inc/function/theme_image_scale_summary/7.x", "instruction": "What does the theme_image_scale_summary function generate in Drupal 7?", "context": "", "response": "function theme_image_scale_summary($variables): returns the HTML for an image scale effect summary, including an indication if upscaling is allowed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f6244c966f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_tail_load/7.x", "instruction": "What does the menu_tail_load function do in Drupal 7 and how is it used with router load arguments?", "context": "", "response": "function menu_tail_load($arg, &$map, $index): loads the path as a string relative to the current index and adjusts the map.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f628198a9a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dashboard%21dashboard.install/function/dashboard_disable/7.x", "instruction": "What does the dashboard_disable function do in Drupal 7?", "context": "", "response": "function dashboard_disable(): saves the list of enabled blocks in the dashboard regions and disables them when uninstalling the dashboard module.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f62af58bad", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_transfer/7.x", "instruction": "What does the file_transfer function do in Drupal 7 and how is it used to send a file to the client?", "context": "", "response": "function file_transfer($uri, $headers): Transfers a file to the client via HTTP, sending the specified headers and sending the file in 1024-byte chunks.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f63a994861", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/constant/LOCALE_IMPORT_KEEP/7.x", "instruction": "What does the LOCALE_IMPORT_KEEP constant represent in Drupal 7?", "context": "", "response": "define('LOCALE_IMPORT_KEEP', 1);: indicates that when importing translations, existing translations are kept and only new strings are inserted.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-f63f407512", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/theme_admin_page/7.x", "instruction": "What does the theme_admin_page function do in Drupal 7 and what parameters does it expect?", "context": "", "response": "function theme_admin_page($variables): generates the HTML for an administrative page by organizing blocks into left and right containers based on their position or assigning them automatically with alternating striping.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f65425d45b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.install/function/system_update_7009/7.x", "instruction": "What does the system_update_7009 function do in Drupal 7?", "context": "", "response": "function system_update_7009(): renames the main links variable by migrating menu_primary_links_source to menu_main_links_source.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f65f06d5bb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.core.inc/function/install_begin_request/7.x", "instruction": "What does the install_begin_request function do in Drupal 7 at the start of each installation request and what does it modify in the state?", "context": "", "response": "function install_begin_request(&$install_state): initializes the installation request, validates parameters passed via URL, executes the bootstrap, and checks existing configuration before continuing.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f666b04756", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21trigger%21trigger.admin.inc/function/trigger_assign_form_submit/7.x", "instruction": "What does the trigger_assign_form_submit submit handler do in the Drupal 7 Trigger module?", "context": "", "response": "function trigger_assign_form_submit($form, &$form_state): processes the action-to-trigger assignment form, inserts the new assignment into the trigger_assignments table, and if the action changes properties and is not a presave hook, ensures it exists and executes the corresponding save action.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f6749ceedf", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21iso.inc/function/_country_get_predefined_list/7.x", "instruction": "What does the _country_get_predefined_list function return in Drupal 7?", "context": "", "response": "function _country_get_predefined_list(): Returns a static array of ISO 3166-1 alpha-2 country codes => country names, using get_t() for translation and caching it.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f67a25eee7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.install/function/taxonomy_update_7011/7.x", "instruction": "What does the taxonomy_update_7011(&$sandbox) function do in Drupal 7?", "context": "", "response": "function taxonomy_update_7011(&$sandbox): Removes from the taxonomy index the terms associated with unpublished nodes, processing them in batches of 5000 within a batch update.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f67a6da6cd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.field.inc/function/file_field_widget_upload_validators/7.x", "instruction": "What does the file_field_widget_upload_validators function do in Drupal 7 and what does it return?", "context": "", "response": "function file_field_widget_upload_validators($field, $instance): gets the upload validators for a file field, applying the PHP size limit and instance settings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f696111755", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_entity_info/7.x", "instruction": "How does the comment_entity_info function implement hook_entity_info to define the comment entity in Drupal 7?", "context": "", "response": "function comment_entity_info(): Returns an array describing the comment entity, its keys, bundles, and view modes, implementing hook_entity_info().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f6a9ed1ab9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/themes%21bartik%21template.php/function/bartik_preprocess_maintenance_page/7.x", "instruction": "What does the bartik_preprocess_maintenance_page function do in the Bartik theme of Drupal 7?", "context": "", "response": "function bartik_preprocess_maintenance_page(&$variables): preprocesses the maintenance page by setting site_name to empty when the database is not active and adding the maintenance-page.css stylesheet", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f6b7a46987", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21mysql%21schema.inc/class/DatabaseSchema_mysql/7.x", "instruction": "What does the prepareComment method of the DatabaseSchema_mysql class do in Drupal 7?", "context": "", "response": "public function prepareComment($comment, $length = NULL): prepares a table or column comment for a database query, escaping single quotes (PDO workaround), optionally truncating to maximum length, and quoting via the connection.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-f6bd4d4c3e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.core.inc/function/install_configure_form_submit/7.x", "instruction": "What does the install_configure_form_submit function do in Drupal 7?", "context": "", "response": "function install_configure_form_submit($form, &$form_state): Handles the installation configuration form submission, saving site variables, enabling update.module if applicable, saving the admin account, performing final login tasks, and recording the installation time.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f6d66cc3c7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21blog%21blog.module/function/blog_menu/7.x", "instruction": "How does hook_menu() implement the blog_menu() function of the blog module in Drupal 7 to define blog routes?", "context": "", "response": "function blog_menu(): Defines menu items for blog pages, feeds, and associated access, returning the $items array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f6dea4a2b5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.report.inc/function/update_status/7.x", "instruction": "What does the update_status function do in the update module of Drupal 7?", "context": "", "response": "function update_status(): Generates a page that shows the update status of projects.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f6e39e4665", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_element_info/7.x", "instruction": "How to declare a new form element type in Drupal 7 using hook_element_info?", "context": "", "response": "function hook_element_info(): Allows modules to declare their own form API element types and specify their default values.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f6ea84e154", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.inc/function/install_profile_info/7.x", "instruction": "What does the install_profile_info function do in Drupal 7 and how does it obtain installation profile information?", "context": "", "response": "function install_profile_info($profile, $locale = 'en'): Retrieves and caches installation profile information from its .info file, merging default values and dependencies including locale if different from 'en'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f6f16d962a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.admin.inc/function/locale_date_format_form/7.x", "instruction": "What does the locale_date_format_form function define in Drupal 7 and what parameters does it receive?", "context": "", "response": "function locale_date_format_form($form, &$form_state, $langcode): Provides date localization configuration options to users, displaying a form with the language name and a dropdown list of available date formats for each type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f6f3121fa1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.install/function/menu_schema/7.x", "instruction": "What does the menu_schema() function define in Drupal 7 and what table does it create in the database?", "context": "", "response": "function menu_schema(): Defines the schema of the menu_custom table with the fields menu_name, title, and description, and the primary key menu_name.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f6f35015ad", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_goto_action_submit/7.x", "instruction": "What does the system_goto_action_submit function return when processing a redirect action submission in Drupal 7?", "context": "", "response": "function system_goto_action_submit($form, $form_state): Returns an array whose 'url' index contains the value of $form_state['values']['url'], that is, the URL to which it will redirect.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f6f59bd70d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_node_delete/7.x", "instruction": "What does the forum_node_delete function implemented in forum.module of Drupal 7 do when deleting a node?", "context": "", "response": "function forum_node_delete($node): Deletes the node entries in the forum and forum_index tables when the node type is a forum type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f7085d14fb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.admin.inc/function/image_crop_form/7.x", "instruction": "How is the form fragment created to configure the cropping options of an image effect in Drupal 7?", "context": "", "response": "function image_crop_form($data): Builds the form fragment that allows defining the width, height, and anchor point for the image cropping effect.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f71e2ffe35", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.pages.inc/function/aggregator_categorize_items_submit/7.x", "instruction": "What does the aggregator_categorize_items_submit function do when processing the item categorization form submission in the Drupal 7 Aggregator module?", "context": "", "response": "function aggregator_categorize_items_submit($form, &$form_state): Removes existing relationships between items and categories, inserts the newly selected ones, and displays a confirmation message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f72d1069af", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/themes%21bartik%21template.php/function/bartik_field__taxonomy_term_reference/7.x", "instruction": "How does the Bartik theme render taxonomy term reference fields in Drupal 7?", "context": "", "response": "function bartik_field__taxonomy_term_reference($variables): Implements theme_field__field_type() to display the label (if not hidden) and items as an unordered list with specific classes, wrapped in a div that includes clearfix if not present.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f7315ee52d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_vocabulary_static_reset/7.x", "instruction": "What does the taxonomy_vocabulary_static_reset function do in Drupal 7?", "context": "", "response": "function taxonomy_vocabulary_static_reset($ids = NULL): Resets all static cache variables for vocabularies and resets the entity controller cache for the provided IDs.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f75c73fe8f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21ajax.inc/function/ajax_command_html/7.x", "instruction": "How is an Ajax 'insert/html' command created in Drupal 7 using the ajax_command_html function?", "context": "", "response": "function ajax_command_html($selector, $html, $settings = NULL): Generates an array representing an Ajax command that uses jQuery html() to set the HTML content of selected elements without altering their outer tags.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f76770d94f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/_drupal_theme_access/7.x", "instruction": "What does the _drupal_theme_access function do in Drupal 7 and how does it determine if a theme is available?", "context": "", "response": "function _drupal_theme_access($theme): Determines if a theme is available for use by checking its status or if it matches the admin theme.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f771ccea00", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_more_choices_submit/7.x", "instruction": "What does the poll_more_choices_submit function do in the poll module in Drupal 7?", "context": "", "response": "function poll_more_choices_submit($form, &$form_state): Adds more choices to the poll form, updates the choices counter, and marks the form for reconstruction.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f778f8c23a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_cron_run/7.x", "instruction": "What does the drupal_cron_run function do in Drupal 7 and what does it return?", "context": "", "response": "function drupal_cron_run(): Runs cron when called, returning TRUE if cron ran successfully and FALSE if it was already running.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f78e0e5939", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_xmlrpc_alter/7.x", "instruction": "What does the hook hook_xmlrpc_alter do in Drupal 7 and how is it used to modify XML-RPC methods before they are called?", "context": "", "response": "function hook_xmlrpc_alter(&$methods): Allows modifying the definition of declared XML-RPC methods, adding or altering callbacks before they are invoked by a client.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f799ce04c8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.admin.inc/function/node_configure_rebuild_confirm_submit/7.x", "instruction": "What does the function node_configure_rebuild_confirm_submit do in Drupal 7?", "context": "", "response": "function node_configure_rebuild_confirm_submit($form, &$form_state): Processes the submission of the confirmation form to rebuild node access permissions and redirects to the status report.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f7a510f208", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_access/7.x", "instruction": "How to determine if a user has a certain privilege in Drupal 7 using the function user_access?", "context": "", "response": "function user_access($string, $account = NULL): Returns TRUE if the specified user (or current) has the given permission, leveraging a static permission cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f7b97497ce", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_extra_fields_alter/7.x", "instruction": "How to alter 'pseudo-field' components in fieldable entities in Drupal 7 using hook_field_extra_fields_alter?", "context": "", "response": "function hook_field_extra_fields_alter(&$info): alters 'pseudo-field' components in fieldable entities.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f7c1095ac0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_user_cancel/7.x", "instruction": "What does the function node_user_cancel do when processing user account cancellation in Drupal 7?", "context": "", "response": "function node_user_cancel($edit, $account, $method): Implements hook_user_cancel to unpublish or reassign anonymously the user's nodes according to the selected cancellation method.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f8029eb953", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.admin.inc/function/theme_filter_admin_format_filter_order/7.x", "instruction": "What does the function theme_filter_admin_format_filter_order do and what is its signature in Drupal 7?", "context": "", "response": "function theme_filter_admin_format_filter_order($variables): Returns the HTML of the filter order form for a text format, generating a draggable table with the weights of each filter.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f81fda4c8d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_modules_installed/7.x", "instruction": "What does hook_modules_installed do in Drupal 7 and when does it execute?", "context": "", "response": "function hook_modules_installed($modules): performs necessary actions after modules are installed and allows other modules to react to the installation.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f82938ddb4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/filter_format_allowcache/7.x", "instruction": "What does the function filter_format_allowcache do in Drupal 7?", "context": "", "response": "function filter_format_allowcache($format_id): Checks whether text in a given text format can be cached.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f833c372cb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.module/function/openid_admin_paths/7.x", "instruction": "What does the openid_admin_paths function of the OpenID module in Drupal 7 do?", "context": "", "response": "function openid_admin_paths(): defines the administration routes of the OpenID module marking 'user/*/openid' and 'user/*/openid/delete' as admin routes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f8397698ba", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_add_css/7.x", "instruction": "How does the drupal_add_css function work to add stylesheets in Drupal 7 and what parameters does it accept?", "context": "", "response": "function drupal_add_css($data = NULL, $options = NULL): Adds a stylesheet to Drupal's stylesheet queue, allowing specifying whether it is a file, inline code or external, with options for group, weight, media and preprocessing for optimization.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f83cf337e2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21overlay%21overlay.module/function/overlay_form_user_profile_form_alter/7.x", "instruction": "What does the overlay_form_user_profile_form_alter function do in Drupal 7 and how does it alter the user profile form?", "context": "", "response": "function overlay_form_user_profile_form_alter(&$form, &$form_state): Adds an 'overlay_control' fieldset with a checkbox to enable the administrative overlay in the user profile, only if the category is 'account' and the user has the 'access overlay' permission.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f83ee73a89", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.install/function/node_update_7004/7.x", "instruction": "What does the node_update_7004 function do in Drupal 7 during the update from 6.x?", "context": "", "response": "function node_update_7004(): Extends the default preview and summary settings to all node types.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f8428dd299", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.api.php/function/callback_search_conditions/7.x", "instruction": "How to get additional search conditions from keywords using callback_search_conditions in Drupal 7?", "context": "", "response": "function callback_search_conditions($keys): Gets an array of additional search conditions, such as filters, based on the keywords and is invoked by search_view to pass to search_data.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f84d7ad9c8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dblog%21dblog.install/function/dblog_schema/7.x", "instruction": "What does the dblog_schema function define in the dblog module of Drupal 7?", "context": "", "response": "function dblog_schema(): implements hook_schema() and returns the definition of the watchdog table with its fields, primary key and indexes for storing system event logs.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f84e09c93c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/authorize.php/global/conf/7.x", "instruction": "What does global $conf do in Drupal 7?", "context": "", "response": "global $conf;: Declares the global configuration variable that Drupal uses to store site settings.", "tags": ["api-reference", "global"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f84f9e6933", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/variable_del/7.x", "instruction": "What does the variable_del function do in Drupal 7?", "context": "", "response": "function variable_del($name): Removes a persistent variable by deleting its record from the variable table, clearing the bootstrap cache and removing it from the global $conf array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f85471d505", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.api.php/function/hook_menu_update/7.x", "instruction": "What does the hook hook_menu_update do in Drupal 7?", "context": "", "response": "function hook_menu_update($menu): notifies modules that a custom menu has been updated.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f86d02264f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_regional_settings/7.x", "instruction": "What does the function system_regional_settings do in Drupal 7?", "context": "", "response": "function system_regional_settings(): is the form builder that builds the form for configuring site regional settings (locale, time zones, first day of week, etc.) and delivers it via system_settings_form().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f86f588b1d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_admin_config_page/7.x", "instruction": "What does the function system_admin_config_page do in Drupal 7?", "context": "", "response": "function system_admin_config_page(): Provides the administration overview page, checks status report errors, and builds blocks from configuration menu links.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f879fccb12", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_external_login_register/7.x", "instruction": "What does the function user_external_login_register($name, $module) do in Drupal 7?", "context": "", "response": "function user_external_login_register($name, $module): Logs in or registers the user based on the username and authentication module, populating the global $user object and performing login tasks.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f87c7fdde8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.module/function/_update_get_cache_multiple/7.x", "instruction": "What does the function _update_get_cache_multiple return and how does it filter cache items by prefix in Drupal 7?", "context": "", "response": "function _update_get_cache_multiple($cid_prefix): Returns an associative array of cache items whose key (cid) starts with the specified prefix, deserializing the data if necessary.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f880940ebc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.pages.inc/function/aggregator_categorize_items/7.x", "instruction": "What does the function aggregator_categorize_items do in Drupal 7 and what parameters does it receive?", "context": "", "response": "function aggregator_categorize_items($items, $feed_source = ''): Builds an array of FAPI elements that represents the form for categorizing feed items.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f888bf7830", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21authorize.inc/function/authorize_get_filetransfer/7.x", "instruction": "What does the function authorize_get_filetransfer do in Drupal 7 and how is it used to obtain a FileTransfer object?", "context": "", "response": "function authorize_get_filetransfer($backend, $settings = array()): Gets an instance of the FileTransfer class for the specified method and configuration, or FALSE if an error occurs.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f88d1d5193", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/check_plain/7.x", "instruction": "What does the function check_plain do in Drupal 7 and how does it protect against XSS?", "context": "", "response": "function check_plain($text): Encodes special characters of a plain text string for safe HTML display and validates that the string is valid UTF-8.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f8c89749ea", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21path.inc/function/drupal_clear_path_cache/7.x", "instruction": "What does the drupal_clear_path_cache function do in Drupal 7 and what is the purpose of the $source parameter?", "context": "", "response": "function drupal_clear_path_cache($source = NULL): clears the path cache, resets the static cache of drupal_lookup_path(), and rebuilds the path alias whitelist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f8cd8544ba", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/filter_process_format/7.x", "instruction": "What does the filter_process_format function do in Drupal 7 when processing a form element?", "context": "", "response": "function filter_process_format($element): expands a form element into two subelements: one for the original value and one for the text format selector.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f8f4ddefab", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21authorize.inc/function/authorize_filetransfer_form_validate/7.x", "instruction": "What validations does the authorize_filetransfer_form_validate function perform in the file transfer authorization process in Drupal 7?", "context": "", "response": "function authorize_filetransfer_form_validate($form, &$form_state): Checks that the element that triggered the submission is 'process_updates' and, if connection values exist, attempts to connect using the selected backend, showing a connection error if it fails.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f8f847825d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_rss_feeds_settings/7.x", "instruction": "What does the system_rss_feeds_settings() function do in Drupal 7?", "context": "", "response": "function system_rss_feeds_settings(): Builds the configuration form to adjust how the site handles RSS feeds.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f909ea6b4f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/drupal_get_form/7.x", "instruction": "What does the drupal_get_form function do in Drupal 7 and what is its return value?", "context": "", "response": "function drupal_get_form($form_id): returns a renderable form array for a given form ID, should be used instead of drupal_build_form() when $form_state is not needed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f90b9da165", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.admin.inc/function/theme_taxonomy_overview_terms/7.x", "instruction": "What does the theme_taxonomy_overview_terms function return in Drupal 7?", "context": "", "response": "function theme_taxonomy_overview_terms($variables): generates HTML for a term overview form as a sortable list.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f9437d6b57", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.admin.inc/function/book_admin_settings/7.x", "instruction": "What does the book_admin_settings() function do in the Book module of Drupal 7?", "context": "", "response": "function book_admin_settings(): builds the administration form for the Book module settings.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f95b3c0a4b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21options%21options.module/function/options_field_widget_error/7.x", "instruction": "What does the options_field_widget_error function do in the options module of Drupal 7?", "context": "", "response": "function options_field_widget_error($element, $error, $form, &$form_state): implements hook_field_widget_error() and reports the field widget error using form_error() with the error message.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f95cdec433", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/db_create_table/7.x", "instruction": "What is the db_create_table function used for in Drupal 7?", "context": "", "response": "function db_create_table($name, $table): creates a new table from a Drupal Schema API table definition.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f97e7f18af", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.admin.inc/function/theme_user_admin_permissions/7.x", "instruction": "What does the theme_user_admin_permissions function do in Drupal 7?", "context": "", "response": "function theme_user_admin_permissions($variables): Returns the HTML for the user permissions administration page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f981928cd5", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21install.core.inc/function/_install_select_profile/7.x", "instruction": "What does the _install_select_profile function do in Drupal 7 and under what conditions does it select an installation profile?", "context": "", "response": "function _install_select_profile($profiles): selects an installation profile when only one is available, one was submitted via POST, or exactly one is marked as 'exclusive'; returns its name or NULL if no selection.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f99713fdde", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_token_info/7.x", "instruction": "What information does hook_token_info return in Drupal 7 and how is its return array structured?", "context": "", "response": "function hook_token_info(): returns an associative array with keys 'types' and 'tokens' that define available token types and their individual tokens, including name, description, data requirements, and chained types.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f99e2e644c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_update/7.x", "instruction": "When is hook_field_update invoked and what parameters does it receive in Drupal 7?", "context": "", "response": "function hook_field_update($entity_type, $entity, $field, $instance, $langcode, &$items): invoked from field_attach_update() just before saving field data to storage, allowing field modules to define custom behavior during entity update.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f9ab261edb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21rdf%21rdf.module/function/rdf_mapping_delete/7.x", "instruction": "How does the rdf_mapping_delete function remove an RDF mapping for a specific bundle in Drupal 7?", "context": "", "response": "function rdf_mapping_delete($type, $bundle): Removes the RDF mapping for the specified entity type and bundle from the rdf_mapping table and returns TRUE if any row was deleted, FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f9b893357f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/_search_excerpt_replace/7.x", "instruction": "What does the _search_excerpt_replace function do?", "context": "", "response": "function _search_excerpt_replace(&$text): escapes text with preg_quote for use in array_walk() in search_excerpt.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f9ca77dc4a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_promote_action/7.x", "instruction": "What does the node_promote_action function do in Drupal 7 and how does it modify the promote property of a node?", "context": "", "response": "function node_promote_action($node, $context = array()): sets the node's promote property to NODE_PROMOTED and logs the action in watchdog.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f9cef2c8f0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.inc/function/_openid_link_href/7.x", "instruction": "How to get the href attribute value of a element with a given rel in Drupal 7 using the _openid_link_href function?", "context": "", "response": "function _openid_link_href($rel, $html): Extracts the href attribute of the element whose rel attribute contains the given value, returning FALSE if not found.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f9d2222c5f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21image.gd.inc/function/image_gd_crop/7.x", "instruction": "What does the image_gd_crop function do in Drupal 7 and how does it modify the image object?", "context": "", "response": "function image_gd_crop(stdClass $image, $x, $y, $width, $height): crops an image using GD and modifies the image resource and dimensions.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f9e271383d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.field.inc/function/image_field_instance_settings_form/7.x", "instruction": "What does the image_field_instance_settings_form function do in Drupal 7 and what image field instance settings does it allow configuring?", "context": "", "response": "function image_field_instance_settings_form($field, $instance): implements hook_field_instance_settings_form() to build the settings form for an image field instance, adding maximum and minimum resolution, alt and title fields, and default image.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f9e56aad2a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_html_head_alter/7.x", "instruction": "What is hook_html_head_alter used for in Drupal 7 and how does it modify XHTML head elements?", "context": "", "response": "function hook_html_head_alter(&$head_elements): alters XHTML HEAD elements before they are rendered by drupal_get_html_head().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f9eb6fadb2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.crud.inc/function/field_read_instance/7.x", "instruction": "What does the field_read_instance function do and why is field_info_instance() recommended instead in Drupal 7?", "context": "", "response": "function field_read_instance($entity_type, $field_name, $bundle, $include_additional = array()): reads a single instance record from the database, but field_info_instance() is recommended because it provides caching and allows other modules to add formatters, widgets, and other information.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f9f102a6e1", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_taxonomy_vocabulary_update/7.x", "instruction": "How does taxonomy_taxonomy_vocabulary_update update taxonomy term reference fields when a vocabulary machine name changes?", "context": "", "response": "function taxonomy_taxonomy_vocabulary_update($vocabulary): Updates field settings of type 'taxonomy_term_reference' to reflect the new vocabulary machine name if it has changed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f9fa1da6db", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_get_js/7.x", "instruction": "What does the drupal_get_js function do in Drupal 7 and what order does it follow to include JavaScript files on the page?", "context": "", "response": "function drupal_get_js($scope = 'header', $javascript = NULL, $skip_alter = FALSE): Returns the themed presentation of all JavaScript code on the current page, ordering core files first, then module files, then theme files, followed by settings and inline code.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-f9fc3c2b09", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_roles/7.x", "instruction": "What does the user_roles($membersonly = FALSE, $permission = NULL) function do in Drupal 7?", "context": "", "response": "function user_roles($membersonly = FALSE, $permission = NULL): Retrieves an array of roles meeting the specified condition, optionally excluding the anonymous role and filtering by permission.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fa08426231", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21path.inc/function/drupal_valid_path/7.x", "instruction": "How does Drupal check if a route is valid and accessible for the current user using drupal_valid_path?", "context": "", "response": "function drupal_valid_path($path, $dynamic_allowed = FALSE): Returns TRUE if the route exists and the user has access permission, optionally considering dynamic routes with wildcards.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fa31f91156", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/constant/DRUPAL_AUTHENTICATED_RID/7.x", "instruction": "What is the value of the constant DRUPAL_AUTHENTICATED_RID defined in includes/bootstrap.inc of Drupal 7 and what does it represent?", "context": "", "response": "define('DRUPAL_AUTHENTICATED_RID', 2);: Sets the role ID for authenticated users, which must match the corresponding entry in the role table.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-fa4fc5b6f0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.module/function/forum_forum_load/7.x", "instruction": "How to get a tree of all forums for a given taxonomy term ID in Drupal 7?", "context": "", "response": "function forum_forum_load($tid = NULL): Returns a tree of taxonomy objects representing the forums, including topic count, posts, and last post.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fa72bd0482", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21contextual%21contextual.module/function/contextual_element_info/7.x", "instruction": "What does the contextual_element_info function of the contextual module do in Drupal 7?", "context": "", "response": "function contextual_element_info(): Implements hook_element_info() and defines the 'contextual_links' element type with its rendering properties, theme, and attached libraries.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fa7f1c03c6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.install/function/comment_update_7009/7.x", "instruction": "What does the comment_update_7009 function do in Drupal 7?", "context": "", "response": "function comment_update_7009(): Updates the description of the last_comment_timestamp field in the node_comment_statistics table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fa890474c2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.install/function/user_schema/7.x", "instruction": "What does the user_schema() function do in Drupal 7?", "context": "", "response": "function user_schema(): Implements hook_schema() and returns the schema for the user tables (authmap, role_permission, role, users, users_roles).", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fa93b8a3dc", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.admin.inc/function/comment_admin_overview/7.x", "instruction": "What is the comment_admin_overview function used for in Drupal 7 and what parameters does it accept?", "context": "", "response": "function comment_admin_overview($form, &$form_state, $arg): Generates the comment administration form with bulk operation options based on status (publish, unpublish, or delete) and displays comments in a sortable table with pagination.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fa963581b6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/filter_xss_admin/7.x", "instruction": "What does the filter_xss_admin function do in Drupal 7 and when should it be used?", "context": "", "response": "function filter_xss_admin($string): Applies a very permissive XSS/HTML filter for administrator use only, allowing all HTML tags except scripts and styles.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-faa070ce8c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/_batch_populate_queue/7.x", "instruction": "What does the _batch_populate_queue function do and what queue classes does it use in Drupal 7 based on the batch type?", "context": "", "response": "function _batch_populate_queue(&$batch, $set_id): Populates a job queue with the operations of a batch set, selecting BatchQueue or BatchMemoryQueue based on the batch's progressive property.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-faa5b7468e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.api.php/function/hook_image_style_save/7.x", "instruction": "What does hook_image_style_save do in Drupal 7?", "context": "", "response": "function hook_image_style_save($style): Allows modules to respond to an image style update, for example, updating module variables when the style name is changed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fab15b28fa", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_next/7.x", "instruction": "What does the book_next() function do in Drupal 7 and what does it return?", "context": "", "response": "function book_next($book_link): Returns the menu link of the next page within the book hierarchy.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fac67d8323", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21aggregator%21aggregator.parser.inc/function/aggregator_aggregator_parse/7.x", "instruction": "What does the aggregator_aggregator_parse function do in Drupal 7?", "context": "", "response": "function aggregator_aggregator_parse($feed): Implements hook_aggregator_parse() to parse a feed, filter its data, prepare channel and image information, assign parsed values to the feed object, clear the cache, and return TRUE if parsing succeeds or FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-faee3f8dad", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.crud.inc/function/field_create_field/7.x", "instruction": "What does the field_create_field function do in Drupal 7 and what does the $field parameter require?", "context": "", "response": "function field_create_field($field): Creates a Field API field without attaching it to any bundle, validates that the name and type are valid and unique, and returns the field array with the id property filled.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fb12cca88a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/misc%21typo3%21phar-stream-wrapper%21src%21Phar%21Manifest.php/class/Manifest/7.x", "instruction": "How is a Manifest instance created from the binary content of a PHAR file in Drupal 7?", "context": "", "response": "public static function fromContent($content): Parses the binary PHAR manifest content extracting length, file count, flags, alias, and metadata, and returns a new Manifest instance initialized with those values.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-fb180320c9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/external_documentation%21developer%21globals.php/global/element/7.x", "instruction": "What does the global $element variable represent in Drupal 7 and where is it defined?", "context": "", "response": "global $element;: Structured array describing the data to render, defined in external_documentation/developer/globals.php line 222.", "tags": ["api-reference", "global"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fb295b6d7b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.admin.inc/function/_menu_overview_tree_form/7.x", "instruction": "What is the _menu_overview_tree_form function used for in the menu module of Drupal 7?", "context": "", "response": "function _menu_overview_tree_form($tree, $delta = 50): Recursive helper function that builds form elements to edit a complete menu tree, creating controls for title, visibility, weight, and operations (edit, delete, reset) for each menu link and recursively processing child elements.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fb33bce2fd", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21filter%21filter.module/function/filter_filter_info/7.x", "instruction": "What information does the function filter_filter_info() return, which implements hook_filter_info() in the Filter module of Drupal 7?", "context": "", "response": "function filter_filter_info(): Returns an array with the definition of the standard filters of the Filter module, including titles, process callbacks, settings and tips.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fb35042297", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.api.php/function/hook_user_load/7.x", "instruction": "How can I add additional fields to user objects when loading them from the database using hook_user_load in Drupal 7?", "context": "", "response": "function hook_user_load($users): Allows executing additional code when user objects are loaded from the database.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fb4003230a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.inc/function/_openid_dh_rand/7.x", "instruction": "What does the function _openid_dh_rand($stop) from the OpenID module in Drupal 7 do?", "context": "", "response": "function _openid_dh_rand($stop): Generates a random number less than $stop avoiding duplicate values using a static cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fb4297f721", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_login_block/7.x", "instruction": "What does the function user_login_block do in Drupal 7 and what does it implement?", "context": "", "response": "function user_login_block($form): Implements hook_block_view() and builds the login block form with username and password fields, submit button and links to create account or request new password.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fb53f31e26", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_username_alter/7.x", "instruction": "How is hook_username_alter implemented to modify the username returned by format_username() in Drupal 7?", "context": "", "response": "function hook_username_alter(&$name, $account): Allows altering the username displayed by format_username().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fb546048b6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21blog%21blog.pages.inc/function/blog_feed_last/7.x", "instruction": "What does the function blog_feed_last do in Drupal 7 and what content does it show?", "context": "", "response": "function blog_feed_last(): Displays an RSS feed with recent blog entries from all users.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fb5ff440ed", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/theme_menu_local_task/7.x", "instruction": "What does the function theme_menu_local_task do in Drupal 7 and what does it return?", "context": "", "response": "function theme_menu_local_task($variables): Returns the HTML for a local task link, indicating the active tab with CSS class and invisible text for accessibility.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fb6104f414", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.admin.inc/function/user_admin_account/7.x", "instruction": "What does the function user_admin_account do in Drupal 7?", "context": "", "response": "function user_admin_account(): Builds the user account administration form, displaying a table of users with filters, sorting and bulk operations.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fb64f08dd4", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_image_toolkits/7.x", "instruction": "What should the hook_image_toolkits() function define in Drupal 7 and what structure should it return?", "context": "", "response": "function hook_image_toolkits(): Defines the image tools provided by the module and returns an associative array with the toolkit name as key and sub-arrays containing 'title' and 'available'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fb6f95b822", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_theme_disable/7.x", "instruction": "What does the system_theme_disable function do in Drupal?", "context": "", "response": "function system_theme_disable(): Disables the specified theme if a valid token is provided, prevents disabling the default theme, and redirects to the appearance page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fb99e9c344", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/function/file_download_access/7.x", "instruction": "How does Drupal 7 determine if a user has download access to a file via the file_download_access function?", "context": "", "response": "function file_download_access($uri): Checks if the current user can download a file by verifying that file_download_headers returns at least one result.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fb9ccea4cf", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.admin.inc/function/theme_image_crop_summary/7.x", "instruction": "What does the theme_image_crop_summary function do in Drupal?", "context": "", "response": "function theme_image_crop_summary($variables): Returns the HTML that summarizes the image crop effect.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fb9dc7c01d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21color%21color.module/function/_color_html_alter/7.x", "instruction": "What does the _color_html_alter function do in Drupal and how is it used in a theme to replace stylesheets with color-altered versions?", "context": "", "response": "function _color_html_alter(&$vars): Replaces the original stylesheets with color-altered versions when the page HTML is processed.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fbab1c7871", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_render_template/7.x", "instruction": "How does the theme_render_template function render a PHP template in the Drupal 7 system and what does it internally do with the received parameters?", "context": "", "response": "function theme_render_template($template_file, $variables): extracts the variables, uses output buffering, includes the template file, and returns its generated content.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fbbeafe01e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_formatter_view/7.x", "instruction": "How is a renderable array built for field values via hook_field_formatter_view in Drupal 7?", "context": "", "response": "function hook_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display): Builds and returns a renderable array for the field values, using the display settings and allowing different formats such as simple markup, theme, or combined table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fbcc630f6a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.module/function/search_comment_delete/7.x", "instruction": "What does the search_comment_delete method do in relation to Drupal's hook_comment_delete?", "context": "", "response": "function search_comment_delete($comment): Reindexes the node when a comment is deleted by calling search_touch_node with the comment ID.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fbdf905f00", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/function/_locale_translate_language_list/7.x", "instruction": "What does the _locale_translate_language_list function do in Drupal 7?", "context": "", "response": "function _locale_translate_language_list($string, $limit_language): lists the languages in the translation search results table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fbe0e1e82d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21field_sql_storage%21field_sql_storage.module/function/_field_sql_storage_tablealias/7.x", "instruction": "What does the _field_sql_storage_tablealias function do and how does it build the table alias for an EntityFieldQuery in Drupal 7?", "context": "", "response": "function _field_sql_storage_tablealias($tablename, $field_key, EntityFieldQuery $query): Generates a unique table alias for a field data table based on the table name, delta_group, and language_group of the field condition.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fbf339da0c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/db_change_field/7.x", "instruction": "How is an existing field definition changed in Drupal 7 by explicitly recreating indexes and primary keys to maintain database portability?", "context": "", "response": "function db_change_field($table, $field, $field_new, $spec, $keys_new = array()): changes a field definition in a table, allowing affected keys and indexes to be recreated via the optional $keys_new parameter to ensure compatibility between PostgreSQL and MySQL.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fc0504b400", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_boot/7.x", "instruction": "What does the hook_boot hook do in Drupal 7 and when in the request does it execute?", "context": "", "response": "function hook_boot(): Executes configuration tasks at the beginning of each page request, before loading themes, modules, or most included files.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fc260e5f05", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.module/function/block_admin_paths/7.x", "instruction": "What does the block_admin_paths function do in Drupal 7 and what path does it exclude from admin treatment?", "context": "", "response": "function block_admin_paths(): Implements hook_admin_paths() excluding the block demo page from admin treatment (overlay) to present it in its full form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fc2ec532e0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21color%21color.module/function/_color_theme_select_form_alter/7.x", "instruction": "What does the _color_theme_select_form_alter function do in Drupal 7 and what is it used for?", "context": "", "response": "function _color_theme_select_form_alter(&$form, &$form_state): Iterates through the theme list and replaces its screenshot in the form with the one generated by the Color module, if an image exists in the color_{tema}_screenshot variable.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fc425029b9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21announcements_feed%21announcements_feed.module/constant/ANNOUNCEMENTS_FEED_DEFAULT_JSON_URL/7.x", "instruction": "What is the value of the ANNOUNCEMENTS_FEED_DEFAULT_JSON_URL constant in Drupal 7 and what is it used for?", "context": "", "response": "define('ANNOUNCEMENTS_FEED_DEFAULT_JSON_URL', 'https://www.drupal.org/announcements.json'): Defines the default URL for the Drupal announcements JSON feed, used by announcements_feed_fetch to obtain the feed from the local cache or remotely.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-fc46cc7e84", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21dblog%21dblog.module/function/dblog_theme/7.x", "instruction": "What does the dblog_theme function define in the Drupal 7 dblog module?", "context": "", "response": "function dblog_theme(): implements hook_theme() and registers the 'dblog_message' theme with event and link variables, using the dblog.admin.inc file.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fc538c7dd2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21theme.api.php/function/hook_form_system_theme_settings_alter/7.x", "instruction": "How does Drupal 7 allow themes to modify theme-specific configuration forms via hook_form_system_theme_settings_alter?", "context": "", "response": "function hook_form_system_theme_settings_alter(&$form, &$form_state): allows themes to alter the theme settings form by adding, changing, or removing elements using the Form API, with base theme alterations running first followed by subtheme alterations.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fc5971bb4f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.module/constant/REGIONS_ALL/7.x", "instruction": "What does the REGIONS_ALL constant in Drupal 7 do?", "context": "", "response": "define('REGIONS_ALL', 'all');: returns all available regions for a theme.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-fc69c63303", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21update%21update.module/function/update_themes_enabled/7.x", "instruction": "What does the update_themes_enabled function in Drupal 7 do when themes are enabled?", "context": "", "response": "function update_themes_enabled($themes): Invalidates the available updates cache by clearing the update module caches.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fc77844886", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_ip_blocking/7.x", "instruction": "What does the system_ip_blocking function in Drupal 7 do and what parameters does it accept?", "context": "", "response": "function system_ip_blocking($default_ip = ''): menu callback that displays blocked IP addresses by querying the blocked_ips table, builds a table with links to delete each one, and returns a render array including the blocking form and the resulting table.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fc7cbfb60d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21poll%21poll.module/function/poll_view/7.x", "instruction": "What does the poll_view($node, $view_mode) function from poll.module in Drupal 7 do?", "context": "", "response": "function poll_view($node, $view_mode): Displays the voting form or poll results based on the node configuration and returns the node.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fc7e672b1e", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.api.php/function/hook_taxonomy_term_insert/7.x", "instruction": "How is hook_taxonomy_term_insert implemented to execute code when a taxonomy term is inserted in Drupal 7?", "context": "", "response": "function hook_taxonomy_term_insert($term): Allows modules to act on the taxonomy term object when it is saved to the database.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fcb98443a6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.api.php/function/hook_user_logout/7.x", "instruction": "What is the purpose and behavior of hook_user_logout in Drupal 7?", "context": "", "response": "function hook_user_logout($account): Invoked immediately after a user logs out, before changes are written to the database, receiving the $account user object.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fcbb0fb48b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.admin.inc/function/user_admin_permissions_submit/7.x", "instruction": "What does the user_admin_permissions_submit function in Drupal 7 do?", "context": "", "response": "function user_admin_permissions_submit($form, &$form_state): Saves the selected permissions on the permissions administration page, updates permissions for each role, and clears the cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fcce3decfb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21tracker%21tracker.module/function/_tracker_user_access/7.x", "instruction": "What does the _tracker_user_access function do in the Drupal 7 tracker module?", "context": "", "response": "function _tracker_user_access($account): returns true if the user can view themselves and has the 'access content' permission.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fce831594d", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21sqlite%21query.inc/class/TruncateQuery_sqlite/7.x", "instruction": "How does TruncateQuery_sqlite convert the truncate query to a string in Drupal 7, given that SQLite does not support TRUNCATE?", "context": "", "response": "public function __toString(): returns a DELETE FROM statement without a condition on the table, since SQLite implements TRUNCATE by dropping the table.", "tags": ["api-reference", "class"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-fcee1a3d7c", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_num_new/7.x", "instruction": "How to get the number of new comments for a given node and the current user in Drupal 7?", "context": "", "response": "function comment_num_new($nid, $timestamp = 0): returns the number of new comments for the current user and the specified node, or FALSE on error.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fcf58589ca", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21comment%21comment.module/function/comment_prepare_thread/7.x", "instruction": "What does the comment_prepare_thread function do in Drupal 7 and what parameter does it receive?", "context": "", "response": "function comment_prepare_thread(&$comments): iterates through the comment thread calculating the indentation level and alters the $comments array by reference with that information.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fd0caee83f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.module/function/image_effect_load/7.x", "instruction": "How to load a single image effect in Drupal 7 using its ID and style name?", "context": "", "response": "function image_effect_load($ieid, $style_name, $include = NULL): loads a single image effect returning its array with keys like ieid, isid, weight, name and data, or FALSE if it does not exist.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fd24e3dd88", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21forum%21forum.admin.inc/function/forum_admin_settings/7.x", "instruction": "What does the forum_admin_settings function do in Drupal 7 and what forum settings does it expose in the form?", "context": "", "response": "function forum_admin_settings($form): builds the forum configuration form with hot topic threshold, topics per page and default order, and sends it to system_settings_form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fd29dc1238", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.admin.inc/function/menu_reset_item_confirm/7.x", "instruction": "What does the menu_reset_item_confirm function do in Drupal?", "context": "", "response": "function menu_reset_item_confirm($form, &$form_state, $item): is a menu callback that generates a confirmation form to reset a modified menu link to its default values, warning that customizations will be lost.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fd2cbad8ec", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21locale.inc/function/locale_language_from_browser/7.x", "instruction": "What does the locale_language_from_browser function do in Drupal 7 and how does it negotiate the browser language?", "context": "", "response": "function locale_language_from_browser($languages): parses the HTTP Accept-Language header of the browser to return the enabled language code with the highest qvalue, or FALSE if there is no match.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fd3c112b36", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21overlay%21overlay.module/function/template_process_overlay/7.x", "instruction": "What does the function template_process_overlay(&$variables) do in Drupal 7?", "context": "", "response": "function template_process_overlay(&$variables): Places the rendered HTML of the page body in the top-level 'page' variable.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fd48967b20", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_tree_data/7.x", "instruction": "How to get structured data from a menu tree in Drupal 7 using the menu_tree_data function", "context": "", "response": "function menu_tree_data(array $links, array $parents = array(), $depth = 1): Sorts and returns data representing a menu tree from a flat array of links.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fd60ca575a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21menu%21menu.module/function/menu_node_save/7.x", "instruction": "What does the function menu_node_save($node) do in the menu module of Drupal 7?", "context": "", "response": "function menu_node_save($node): Acts as a helper for hook_node_insert() and hook_node_update(), saving or deleting the menu link associated with the node according to its configuration.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fd6b6b9558", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_is_anonymous/7.x", "instruction": "What is the function user_is_anonymous() used for in Drupal 7 and what does it determine about the current user?", "context": "", "response": "function user_is_anonymous(): Determines if the current user is anonymous, returning TRUE if so and FALSE if authenticated.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fd8273f17b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_field_display_node_alter/7.x", "instruction": "What does the function node_field_display_node_alter do in Drupal 7 and how does it modify field display?", "context": "", "response": "function node_field_display_node_alter(&$display, $context): Hides field labels when the view mode is 'search_index'.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fd853c6ece", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.admin.inc/function/_locale_languages_common_controls/7.x", "instruction": "What does the function _locale_languages_common_controls do in Drupal 7?", "context": "", "response": "function _locale_languages_common_controls(&$form, $language = NULL): Adds common elements to the language add or edit form, such as language code, English name, native name, path prefix, domain, and text direction, returning the modified $form array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fd91fc93ea", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/function/system_site_information_settings/7.x", "instruction": "What does the function system_site_information_settings do in Drupal 7?", "context": "", "response": "function system_site_information_settings(): Builds the site information settings form using system_settings_form.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fda2901e56", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21ajax.inc/function/ajax_render/7.x", "instruction": "What does the function ajax_render($commands = array()) do in Drupal 7?", "context": "", "response": "function ajax_render($commands = array()): Renders an array of Ajax commands generated by ajax_command_*() into a JSON string, adding necessary CSS and JS files and allowing modules to alter the response before encoding.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fda6e6b3ee", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_file_load/7.x", "instruction": "What does the hook hook_file_load do in Drupal 7 and when is it invoked?", "context": "", "response": "function hook_file_load($files): Allows modules to load additional information into each file object when file_load_multiple() is called.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fdb40abfd9", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21menu.inc/constant/MENU_SUGGESTED_ITEM/7.x", "instruction": "What does the constant MENU_SUGGESTED_ITEM mean in Drupal 7's menu system?", "context": "", "response": "define('MENU_SUGGESTED_ITEM', MENU_VISIBLE_IN_BREADCRUMB | 0x10);: Indicates a menu item type that is hidden until enabled by an administrator.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-fdc4d38295", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_html_class/7.x", "instruction": "What does the function drupal_html_class($class) do in Drupal 7?", "context": "", "response": "function drupal_html_class($class): Cleans a string so it can be used as a valid HTML class name, converting it to lowercase and applying drupal_clean_css_identifier, storing results in static cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fddcb506f8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21shortcut%21shortcut.admin.inc/function/shortcut_set_edit_form_submit/7.x", "instruction": "What is the behavior of the shortcut_set_edit_form_submit submit handler in Drupal 7 when saving a shortcut set?", "context": "", "response": "function shortcut_set_edit_form_submit($form, &$form_state): Updates the shortcut set title, saves it, displays a confirmation message, and redirects to the set administration page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fdf4e0913f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/themes%21engines%21phptemplate%21phptemplate.engine/function/phptemplate_theme/7.x", "instruction": "What does the phptemplate_theme function do in Drupal 7's PHPTemplate engine?", "context": "", "response": "function phptemplate_theme($existing, $type, $theme, $path): Implements hook_theme() and returns an array with templates found via drupal_find_theme_functions and drupal_find_theme_templates.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fe2fc206e0", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/db_truncate/7.x", "instruction": "What parameters does the db_truncate function accept and what object does it return?", "context": "", "response": "function db_truncate($table, array $options = array()): Returns a TruncateQuery object to truncate the specified table with the provided options.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fe51df9194", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21modules%21list%21list.module/function/list_field_settings_form/7.x", "instruction": "What is the list_field_settings_form function used for in Drupal 7 and what type of fields does it configure?", "context": "", "response": "function list_field_settings_form($field, $instance, $has_data): Implements hook_field_settings_form() to define the list field settings form, allowing configuration of allowed values.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fe55386e03", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21contact%21contact.pages.inc/function/contact_personal_form/7.x", "instruction": "What does the contact_personal_form function do in Drupal 7 and how does it build the personal contact form?", "context": "", "response": "function contact_personal_form($form, &$form_state, $recipient): Builds the personal contact form for a recipient user, checks flood control by email, sets the title, and defines the name, mail, recipient, subject, message, and copy fields.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fe653470bb", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21path.inc/function/path_get_admin_paths/7.x", "instruction": "What does the path_get_admin_paths() function return in Drupal 7 and how does it organize administrative and non-administrative paths?", "context": "", "response": "function path_get_admin_paths(): returns an associative array with keys 'admin' and 'non_admin', where each value contains the corresponding paths and regular expressions joined by line breaks, ready to use with drupal_match_path().", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fe7aa4268f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.module/function/_field_filter_items/7.x", "instruction": "What does the _field_filter_items function do in Drupal and how does it process field items?", "context": "", "response": "function _field_filter_items($field, $items): Filters empty values from a field using the corresponding module function and renumbers the keys of the resulting array.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fe92549022", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21file%21file.field.inc/function/file_field_displayed/7.x", "instruction": "What does the file_field_displayed function do in Drupal 7 and under what conditions does it return TRUE or FALSE?", "context": "", "response": "function file_field_displayed($item, $field): Determines whether a file should be displayed when rendering the field content, returning TRUE when it will be displayed and FALSE when it is hidden.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fea00bd114", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21locale%21locale.install/function/locale_update_7003/7.x", "instruction": "What does the locale_update_7003 function do in Drupal 7?", "context": "", "response": "function locale_update_7003(): updates the \"language_count\" variable with the number of enabled languages.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fea540feea", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_register_submit/7.x", "instruction": "What does the user_register_submit function do when processing the user registration form submission in Drupal 7?", "context": "", "response": "function user_register_submit($form, &$form_state): handles the registration form submission, processes the password, notifications, and saves the user account.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fecd7d981f", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_type_delete/7.x", "instruction": "What does the node_type_delete function do in Drupal 7?", "context": "", "response": "function node_type_delete($type): deletes a node type from the database.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fef5fffce7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.api.php/function/hook_field_attach_preprocess_alter/7.x", "instruction": "How to alter the field_attach_preprocess variables during the field.tpl.php template preprocessing in Drupal 7?", "context": "", "response": "function hook_field_attach_preprocess_alter(&$variables, $context): alters the field_attach_preprocess variables during the field.tpl.php template preprocessing, receiving the variables by reference and a context array with entity_type, entity, and element.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ff0b36df08", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_access_view_all_nodes/7.x", "instruction": "How to determine if a user has global view permission for all nodes in Drupal 7?", "context": "", "response": "function node_access_view_all_nodes($account = NULL): Returns TRUE if the user is granted the global 'view' permission for all nodes, FALSE otherwise.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ff0c7d0bae", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.install/function/taxonomy_uninstall/7.x", "instruction": "What does the taxonomy_uninstall function do in the taxonomy module of Drupal 7?", "context": "", "response": "function taxonomy_uninstall(): implements hook_uninstall() to remove configuration variables and delete taxonomy_term bundles associated with each vocabulary when uninstalling the module.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ff16087a35", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21color%21color.module/function/theme_color_scheme_form/7.x", "instruction": "How does the theme_color_scheme_form function generate the HTML for the theme color configuration form in Drupal 7?", "context": "", "response": "function theme_color_scheme_form($variables): Generates and returns the HTML for the theme color configuration form, including color schemes, palette, preview, and loading the necessary CSS and JavaScript resources.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ff2d9903f6", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21book%21book.module/function/book_form_update/7.x", "instruction": "What does the book_form_update($form, $form_state) function return in Drupal 7?", "context": "", "response": "function book_form_update($form, $form_state): Returns the rendered parent select element when the book selection changes.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ff3b753463", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21search%21search.admin.inc/function/search_admin_reindex_submit/7.x", "instruction": "What does the search_admin_reindex_submit($form, &$form_state) function do in Drupal 7?", "context": "", "response": "function search_admin_reindex_submit($form, &$form_state): Assigns the confirmation URL to the form state to redirect the user to the reindex page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ff46478842", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21field%21field.install/function/field_schema/7.x", "instruction": "What does the field_schema function define in the Field module of Drupal 7?", "context": "", "response": "function field_schema(): implements hook_schema() and returns the database schema for the field_config, field_config_instance, and cache_field tables that store field configuration, instances, and Field module cache.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ff4fb25ec7", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21block%21block.install/function/block_update_7003/7.x", "instruction": "What does the block_update_7003 function do in Drupal?", "context": "", "response": "function block_update_7003(): Updates the weight field of blocks to a standard integer type.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ff676a7d89", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21errors.inc/function/_drupal_decode_exception/7.x", "instruction": "What does the _drupal_decode_exception function do in Drupal 7?", "context": "", "response": "function _drupal_decode_exception($exception): decodes an exception and gets the correct caller, returning a formatted error array for _drupal_log_error(); specially handles PDOException to skip internal database layers and include the query and its arguments.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ff7a1fe7d2", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21bootstrap.inc/constant/DRUPAL_BOOTSTRAP_FULL/7.x", "instruction": "What does the DRUPAL_BOOTSTRAP_FULL constant indicate in Drupal 7 and what is its value?", "context": "", "response": "define('DRUPAL_BOOTSTRAP_FULL', 7);: Indicates that Drupal is fully loaded; it is used to validate and correct input data.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-ff847f05ec", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21file.inc/constant/FILE_EXISTS_RENAME/7.x", "instruction": "What does the constant FILE_EXISTS_RENAME indicate in the Drupal 7 file API?", "context": "", "response": "define('FILE_EXISTS_RENAME', 0);: indicates that when dealing with existing files, a number is appended to the name until it is unique.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-ff85b44222", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21openid%21openid.install/function/openid_schema/7.x", "instruction": "What database schema does the openid_schema function of the OpenID module define in Drupal 7?", "context": "", "response": "function openid_schema(): defines the openid_association and openid_nonce tables to store OpenID associations and nonces.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ff881a964b", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_menu/7.x", "instruction": "What does the taxonomy_menu() function define when implementing hook_menu() in Drupal 7?", "context": "", "response": "function taxonomy_menu(): defines menu items for vocabulary and term administration, as well as for taxonomy term views, editing, and autocompletion.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ff940c4751", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.module/function/user_node_load/7.x", "instruction": "What does the user_node_load function do in Drupal 7 and how does it enrich nodes with user data?", "context": "", "response": "function user_node_load($nodes, $types): implements hook_node_load() to load the name, image, and author data of each node and attach them to node objects.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ffc1944d31", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21image.inc/function/image_scale_and_crop/7.x", "instruction": "What does the image_scale_and_crop function do in Drupal 7 and what is its signature?", "context": "", "response": "function image_scale_and_crop(stdClass $image, $width, $height): Scales an image to the exact specified width and height, cropping equally on the sides or top and bottom to achieve the target aspect ratio, and returns TRUE on success or FALSE on failure.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ffce9e37e8", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21common.inc/constant/JS_THEME/7.x", "instruction": "What is the value and purpose of the JS_THEME constant in Drupal 7?", "context": "", "response": "define('JS_THEME', 100);: Defines the default group for theme JavaScript code added to the page, with a value of 100.", "tags": ["api-reference", "constant"], "created_at": "2026-09-27"}
{"id": "doc-drupal7-ffd9d5af4a", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21user%21user.api.php/function/hook_user_delete/7.x", "instruction": "What does hook_user_delete do in Drupal 7 and at what point in the deletion process does it execute?", "context": "", "response": "function hook_user_delete($account): responds to the deletion of a user account, executing from user_delete_multiple() before field_attach_delete() and before the user is deleted from the database.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ffdd180860", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21form.inc/function/form_select_options/7.x", "instruction": "What does the form_select_options function do in Drupal 7 and how does it convert form element options into HTML for a select?", "context": "", "response": "function form_select_options($element, $choices = NULL): converts an array of options into an HTML string of and elements for select lists, calling itself recursively to group options and handling objects with an 'option' property.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-ffe021ee58", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/modules%21image%21image.admin.inc/function/image_effect_integer_validate/7.x", "instruction": "How does the image_effect_integer_validate function validate that a form value is a positive integer (or negative if allowed) for image effects in Drupal 7?", "context": "", "response": "function image_effect_integer_validate($element, &$form_state): Validates that the element value is a positive integer, allowing negatives if #allow_negative is TRUE, and sets form errors if validation fails.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}
{"id": "doc-drupal7-fff24350fa", "drupal_version": "7", "source_type": "drupal_api_reference", "source_url": "https://api.drupal.org/api/drupal/includes%21theme.maintenance.inc/function/_theme_load_offline_registry/7.x", "instruction": "What is the _theme_load_offline_registry function used for in Drupal 7 when the site should skip database calls?", "context": "", "response": "function _theme_load_offline_registry($theme, $base_theme = NULL, $theme_engine = NULL): Builds the theme registry skipping database queries and sets up the theme system for the maintenance page.", "tags": ["api-reference", "function"], "created_at": "2026-09-30"}