[ Index ] |
|
Code source de Drupal 5.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 422 lignes (13 kb) |
Inclus ou requis: | 3 fois |
Référencé: | 0 fois |
Nécessite: | 1 fichier includes/install.inc |
module_load_all() X-Ref |
Load all the modules that have been enabled in the system table. |
module_iterate($function, $argument = '') X-Ref |
Call a function repeatedly with each module in turn as an argument. |
module_list($refresh = FALSE, $bootstrap = TRUE, $sort = FALSE, $fixed_list = NULL) X-Ref |
Collect a list of all loaded modules. During the bootstrap, return only vital modules. See bootstrap.inc param: $refresh param: $bootstrap param: $sort param: $fixed_list return: |
module_rebuild_cache() X-Ref |
Rebuild the database cache of module files. return: |
_module_build_dependents($files) X-Ref |
Find dependents; modules that are required by other modules. Adds an array of dependents to the $file->info array. return: |
_module_parse_info_file($filename) X-Ref |
Parse Drupal info file format. Uses ini parser provided by php's parse_ini_file(). Files should use the ini format to specify values. e.g. key = "value" key2 = value2 Some things to be aware of: - This function is NOT for placing arbitrary module-specific settings. Use variable_get() and variable_set() for that. - You may not use double-quotes in a value. Information stored in the module.info file: name - The real name of the module for display purposes. description - A brief description of the module. dependencies - A space delimited list of the short names (shortname) of other modules this module depends on. package - The name of the package of modules this module belongs to. Example of .info file: name = Forum description = Enables threaded discussions about general topics. dependencies = taxonomy comment package = Core - optional param: $filename return: |
module_exists($module) X-Ref |
Determine whether a given module exists. param: $module return: |
module_load_install($module) X-Ref |
Load a module's installation hooks. |
module_enable($module_list) X-Ref |
Enable a given list of modules. param: $module_list |
module_disable($module_list) X-Ref |
Disable a given set of modules. param: $module_list |
module_hook($module, $hook) X-Ref |
Determine whether a module implements a hook. param: $module param: $hook return: |
module_implements($hook, $sort = FALSE, $refresh = FALSE) X-Ref |
Determine which modules are implementing a hook. param: $hook param: $sort param: $refresh return: |
module_invoke() X-Ref |
Invoke a hook in a particular module. param: $module param: $hook param: ... return: |
module_invoke_all() X-Ref |
Invoke a hook in all enabled modules that implement it. param: $hook param: ... return: |
Généré le : Fri Nov 30 16:20:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |