diff options
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.api.php | 4 | ||||
-rw-r--r-- | modules/system/system.module | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php index c2e6e8926..3adfef94a 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -583,6 +583,10 @@ function hook_perm() { * used as the default value if not specified to the theme() function. * These arguments must be in the same order that they will be given to * the theme() function. + * - file: The file the implementation resides in. This file will be included + * prior to the theme being rendered, to make sure that the function or + * preprocess function (as needed) is actually loaded; this makes it possible + * to split theme functions out into separate files quite easily. * - path: Override the path of the file to be used. Ordinarily the module or * theme path will be used, but if the file will not be in the default path, * include it here. This path should be relative to the Drupal root diff --git a/modules/system/system.module b/modules/system/system.module index 017c43473..40538d104 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -121,33 +121,43 @@ function system_theme() { return array_merge(drupal_common_theme(), array( 'system_theme_select_form' => array( 'arguments' => array('form' => NULL), + 'file' => 'system.admin.inc', ), 'system_themes_form' => array( 'arguments' => array('form' => NULL), + 'file' => 'system.admin.inc', ), 'system_modules_fieldset' => array( 'arguments' => array('form' => NULL), + 'file' => 'system.admin.inc', ), 'system_modules_incompatible' => array( 'arguments' => array('message' => NULL), + 'file' => 'system.admin.inc', ), 'system_modules_uninstall' => array( 'arguments' => array('form' => NULL), + 'file' => 'system.admin.inc', ), 'status_report' => array( 'arguments' => array('requirements' => NULL), + 'file' => 'system.admin.inc', ), 'admin_page' => array( 'arguments' => array('blocks' => NULL), + 'file' => 'system.admin.inc', ), 'admin_block' => array( 'arguments' => array('block' => NULL), + 'file' => 'system.admin.inc', ), 'admin_block_content' => array( 'arguments' => array('content' => NULL), + 'file' => 'system.admin.inc', ), 'system_admin_by_module' => array( 'arguments' => array('menu_items' => NULL), + 'file' => 'system.admin.inc', ), 'system_powered_by' => array( 'arguments' => array('image_path' => NULL), |