drupal_verify_profile

drupal_verify_profile($install_state) Verifies that all dependencies are met for a given installation profile. Parameters $install_state: An array of information about the current installation state. Return value The list of modules to install. File core/includes/install.inc, line 557 API functions for installing modules and themes. Code function drupal_verify_profile($install_state) { $profile = $install_state['parameters']['profile']; $info = $install_state['profile_info']; // Get

drupal_verify_install_file

drupal_verify_install_file($file, $mask = NULL, $type = 'file') Verifies the state of the specified file. Parameters $file: The file to check for. $mask: An optional bitmask created from various FILE_* constants. $type: The type of file. Can be file (default), dir, or link. Return value TRUE on success or FALSE on failure. A message is set for the latter. File core/includes/install.inc, line 650 API functions for installing modules and themes. Code function drupal_verify_install_file($file,

drupal_validate_utf8

drupal_validate_utf8($text) Checks whether a string is valid UTF-8. All functions designed to filter input should use drupal_validate_utf8 to ensure they operate on valid UTF-8 strings to prevent bypass of the filter. When text containing an invalid UTF-8 lead byte (0xC0 - 0xFF) is presented as UTF-8 to Internet Explorer 6, the program may misinterpret subsequent bytes. When these subsequent bytes are HTML control characters such as quotes or angle brackets, parts of the text that were deemed s

DRUPAL_USER_TIMEZONE_SELECT

New users will select their own timezone at registration. File core/modules/system/system.module, line 44 Configuration system that lets administrators modify the workings of the site. Code const DRUPAL_USER_TIMEZONE_SELECT = 2;

DRUPAL_USER_TIMEZONE_EMPTY

New users will get an empty time zone at registration. File core/modules/system/system.module, line 39 Configuration system that lets administrators modify the workings of the site. Code const DRUPAL_USER_TIMEZONE_EMPTY = 1;

DRUPAL_USER_TIMEZONE_DEFAULT

New users will be set to the default time zone at registration. File core/modules/system/system.module, line 34 Configuration system that lets administrators modify the workings of the site. Code const DRUPAL_USER_TIMEZONE_DEFAULT = 0;

drupal_unlink

drupal_unlink($uri, $context = NULL) Deletes a file. Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::unlink(). Related topics File interface Common file handling functions. File core/includes/file.inc, line 1117 API for handling file uploads and server file management. Code function drupal_unlink($uri, $context = NULL) { return \Drupal::service('file_system')->unlink($uri, $context); }

drupal_uninstall_schema

drupal_uninstall_schema($module) Removes all tables defined in a module's hook_schema(). Parameters string $module: The module for which the tables will be removed. Related topics Schema API API to handle database schemas. File core/includes/schema.inc, line 132 Schema API handling functions. Code function drupal_uninstall_schema($module) { $schema = drupal_get_module_schema($module); _drupal_schema_initialize($schema, $module, FALSE); foreach ($schema as $table) { if (db_table_

drupal_theme_rebuild

drupal_theme_rebuild() Forces the system to rebuild the theme registry. This function should be called when modules are added to the system, or when a dynamic system needs to add more theme hooks. File core/includes/theme.inc, line 120 The theme system, which controls the output of Drupal. Code function drupal_theme_rebuild() { \Drupal::service('theme.registry')->reset(); }

drupal_tempnam

drupal_tempnam($directory, $prefix) Creates a file with a unique filename in the specified directory. Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::tempnam(). Related topics File interface Common file handling functions. File core/includes/file.inc, line 1178 API for handling file uploads and server file management. Code function drupal_tempnam($directory, $prefix) { return \Drupal::service('file_system')->tempnam($directory,