--- common.inc 2007-02-06 01:01:38.000000000 -0600
+++ common.inc.new 2007-02-06 01:01:19.000000000 -0600
@@ -1379,6 +1379,7 @@
* Add a tag to the page's HEAD.
*/
function drupal_add_link($attributes) {
+ module_invoke_all('side_effect', __FUNCTION__, func_get_args());
drupal_set_html_head('\n");
}
@@ -1425,6 +1426,7 @@
// Create an array of CSS files for each media type first, since each type needs to be served
// to the browser differently.
if (isset($path)) {
+ module_invoke_all('side_effect', __FUNCTION__, func_get_args());
// This check is necessary to ensure proper cascading of styles and is faster than an asort().
if (!isset($css[$media])) {
$css[$media] = array('module' => array(), 'theme' => array());
@@ -1604,6 +1606,7 @@
* far for $scope is returned.
*/
function drupal_add_js($data = NULL, $type = 'module', $scope = 'header', $defer = FALSE, $cache = TRUE) {
+ module_invoke_all('side_effect', __FUNCTION__, func_get_args());
if (!is_null($data)) {
_drupal_add_js('misc/jquery.js', 'core', 'header', FALSE, $cache);
_drupal_add_js('misc/drupal.js', 'core', 'header', FALSE, $cache);