updated core to 7.73
This commit is contained in:
@@ -92,6 +92,18 @@ function common_test_drupal_goto_alter(&$path, &$options, &$http_response_code)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_init().
|
||||
*/
|
||||
function common_test_init() {
|
||||
if (variable_get('common_test_redirect_current_path', FALSE)) {
|
||||
drupal_goto(current_path());
|
||||
}
|
||||
if (variable_get('common_test_link_to_current_path', FALSE)) {
|
||||
drupal_set_message(l('link which should point to the current path', current_path()));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Print destination query parameter.
|
||||
*/
|
||||
@@ -100,6 +112,14 @@ function common_test_destination() {
|
||||
print "The destination: " . check_plain($destination['destination']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Applies #printed to an element to help test #pre_render.
|
||||
*/
|
||||
function common_test_drupal_render_printing_pre_render($elements) {
|
||||
$elements['#printed'] = TRUE;
|
||||
return $elements;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_TYPE_alter().
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user