diff --git a/core/modules/system/tests/modules/menu_test/menu_test.module b/core/modules/system/tests/modules/menu_test/menu_test.module index 6d458e1..578edd1 100644 --- a/core/modules/system/tests/modules/menu_test/menu_test.module +++ b/core/modules/system/tests/modules/menu_test/menu_test.module @@ -391,7 +391,7 @@ function menu_test_callback() { } /** - * Page callback; Tests menu_test_menu_tree_set_path(). + * Page callback: Tests menu_test_menu_tree_set_path(). */ function menu_test_menu_trail_callback() { $menu_path = state()->get('menu_test.menu_tree_set_path') ?: array(); @@ -414,7 +414,7 @@ function menu_test_init() { } /** - * Page callback; Used for custom 403 and 404 pages. + * Page callback: Used for custom 403 and 404 pages. */ function menu_test_custom_403_404_callback() { // When requested by one of the MenuTrailTestCase tests, record the final @@ -428,7 +428,7 @@ function menu_test_custom_403_404_callback() { } /** - * Page callback; Used when testing the theme callback functionality. + * Page callback: Used when testing the theme callback functionality. * * @param bool $inherited * An optional boolean to set to TRUE when the requested page is intended to @@ -453,7 +453,7 @@ function menu_test_theme_page_callback($inherited = FALSE) { } /** - * Theme callback; Used when testing the theme callback functionality. + * Theme callback: Used when testing the theme callback functionality. * * @param string $argument * The argument passed in from the URL. @@ -571,14 +571,14 @@ function menu_test_menu_site_status_alter(&$menu_site_status, $path) { } /** - * Page callback; Used as a login path. + * Page callback: Used as a login path. */ function menu_login_callback() { return 'This is menu_login_callback().'; } /** - * Page callback; Concatenates the title and case number. + * Page callback: Concatenates the title and case number. * * @param string $title * Title string. diff --git a/core/modules/system/tests/modules/module_test/module_test.module b/core/modules/system/tests/modules/module_test/module_test.module index 4d310b0..15fc3c3 100644 --- a/core/modules/system/tests/modules/module_test/module_test.module +++ b/core/modules/system/tests/modules/module_test/module_test.module @@ -93,7 +93,7 @@ function module_test_menu() { } /** - * Page callback; For 'hook dynamic loading' test. + * Page callback: For 'hook dynamic loading' test. * * If the hook is dynamically loaded correctly, the menu callback should * return 'success!'. @@ -104,7 +104,7 @@ function module_test_hook_dynamic_loading_invoke() { } /** - * Page callback; For 'hook dynamic loading' test. + * Page callback: For 'hook dynamic loading' test. * * If the hook is dynamically loaded correctly, the menu callback should * return 'success!'. @@ -115,7 +115,7 @@ function module_test_hook_dynamic_loading_invoke_all() { } /** - * Page callback; For 'hook dynamic loading' test. + * Page callback: For 'hook dynamic loading' test. * * If the hook is dynamically loaded correctly, the menu callback should * return 'success!'. @@ -136,7 +136,7 @@ function module_test_load($param) { } /** - * Page callback; For 'class loading' test. + * Page callback: For 'class loading' test. * * This module does not have a dependency on module_autoload_test.module. If * that module is enabled, this function should return the string diff --git a/core/modules/system/tests/modules/plugin_test/plugin_test.module b/core/modules/system/tests/modules/plugin_test/plugin_test.module index ed860ea..84b4712 100644 --- a/core/modules/system/tests/modules/plugin_test/plugin_test.module +++ b/core/modules/system/tests/modules/plugin_test/plugin_test.module @@ -30,7 +30,7 @@ function plugin_test_menu() { } /** - * Page callback; Prints plugin labels for testing. + * Page callback: Prints plugin labels for testing. * * @return array * A simple renderable array of plugin labels. diff --git a/core/modules/system/tests/modules/session_test/session_test.module b/core/modules/system/tests/modules/session_test/session_test.module index ed40691..5cbf97e 100644 --- a/core/modules/system/tests/modules/session_test/session_test.module +++ b/core/modules/system/tests/modules/session_test/session_test.module @@ -65,7 +65,7 @@ function session_test_menu() { } /** - * Page callback; Prints the stored session value to the screen. + * Page callback: Prints the stored session value to the screen. */ function _session_test_get() { if (!empty($_SESSION['session_test_value'])) { @@ -77,7 +77,7 @@ function _session_test_get() { } /** - * Page callback; Stores a value in $_SESSION['session_test_value']. + * Page callback: Stores a value in $_SESSION['session_test_value']. */ function _session_test_set($value) { $_SESSION['session_test_value'] = $value; @@ -94,7 +94,7 @@ function _session_test_no_set($value) { } /** - * Page callback; Prints the current session ID. + * Page callback: Prints the current session ID. */ function _session_test_id() { // Set a value in $_SESSION, so that drupal_session_commit() will start @@ -107,14 +107,14 @@ function _session_test_id() { } /** - * Page callback; Prints the current session ID as read from the cookie. + * Page callback: Prints the current session ID as read from the cookie. */ function _session_test_id_from_cookie() { return 'session_id:' . $_COOKIE[session_name()] . "\n"; } /** - * Page callback; Sets a message to be displayed on the following page. + * Page callback: Sets a message to be displayed on the following page. */ function _session_test_set_message() { drupal_set_message(t('This is a dummy message.')); @@ -125,7 +125,7 @@ function _session_test_set_message() { } /** - * Page callback; Sets a message, but doesn't save session. + * Page callback: Sets a message, but doesn't save session. */ function _session_test_set_message_but_dont_save() { drupal_save_session(FALSE); @@ -133,7 +133,7 @@ function _session_test_set_message_but_dont_save() { } /** - * Page callback; Sets a session value without an initiated session. + * Page callback: Sets a session value without an initiated session. */ function _session_test_set_not_started() { if (!drupal_session_will_start()) { @@ -176,7 +176,7 @@ function session_test_drupal_goto_alter(&$path, &$options, &$http_response_code) } /** - * Page callback; Only available if current user is logged in. + * Page callback: Only available if current user is logged in. */ function _session_test_is_logged_in() { return t('User is logged in.'); diff --git a/core/modules/system/tests/modules/system_test/system_test.module b/core/modules/system/tests/modules/system_test/system_test.module index a35fcd9..342304b 100644 --- a/core/modules/system/tests/modules/system_test/system_test.module +++ b/core/modules/system/tests/modules/system_test/system_test.module @@ -110,7 +110,7 @@ function system_test_menu() { } /** - * Page callback; Wrapper for PHP's sleep() function. + * Page callback: Wrapper for PHP's sleep() function. * * @param * The number of seconds to delay processing. @@ -122,7 +122,7 @@ function system_test_sleep($seconds) { } /** - * Page callback; Sets header from query string. + * Page callback: Sets header from query string. */ function system_test_basic_auth_page() { $output = t('$_SERVER[\'PHP_AUTH_USER\'] is @username.', array('@username' => $_SERVER['PHP_AUTH_USER'])); @@ -141,7 +141,7 @@ function system_test_redirect($code) { } /** - * Page callback; Sends a redirect header to itself until $count argument is 0. + * Page callback: Sends a redirect header to itself until $count argument is 0. * * Emulates the variable number of redirects (given by initial $count argument) * to the final destination URL by continuous sending of 301 HTTP redirect @@ -165,7 +165,7 @@ function system_test_multiple_redirects($count) { } /** - * Page callback; Sets header from query string. + * Page callback: Sets header from query string. */ function system_test_set_header() { drupal_add_http_header($_GET['name'], $_GET['value']); @@ -173,7 +173,7 @@ function system_test_set_header() { } /** - * Page callback; Sets local redirect. + * Page callback: Sets local redirect. */ function system_test_redirect_noscheme() { header("Location: localhost/path", TRUE, 301); @@ -181,7 +181,7 @@ function system_test_redirect_noscheme() { } /** - * Page callback; Sets invalid header. + * Page callback: Sets invalid header. */ function system_test_redirect_noparse() { header("Location: http:///path", TRUE, 301); @@ -189,7 +189,7 @@ function system_test_redirect_noparse() { } /** - * Page callback; Sets 301 redirect to FTP path. + * Page callback: Sets 301 redirect to FTP path. */ function system_test_redirect_invalid_scheme() { header("Location: ftp://localhost/path", TRUE, 301); @@ -342,14 +342,14 @@ function system_test_page_build(&$page) { } /** - * Page callback; Tests main content fallback(). + * Page callback: Tests main content fallback(). */ function system_test_main_content_fallback() { return t('Content to test main content fallback'); } /** - * Page callback; Adds a register shutdown function. + * Page callback: Adds a register shutdown function. */ function system_test_page_shutdown_functions($arg1, $arg2) { drupal_register_shutdown_function('_system_test_first_shutdown_function', $arg1, $arg2); @@ -394,7 +394,7 @@ function system_test_filetransfer_info() { } /** - * Page callback; Initializes authorize.php during testing. + * Page callback: Initializes authorize.php during testing. * * @see system_authorized_init(). */ diff --git a/core/modules/system/tests/modules/test_page_test/test_page_test.module b/core/modules/system/tests/modules/test_page_test/test_page_test.module index 1325070..0edc6d7 100644 --- a/core/modules/system/tests/modules/test_page_test/test_page_test.module +++ b/core/modules/system/tests/modules/test_page_test/test_page_test.module @@ -20,7 +20,7 @@ function test_page_test_menu() { } /** - * Page callback; Returns a test page and sets the title. + * Page callback: Returns a test page and sets the title. * * @see test_page_test_menu() */ diff --git a/core/modules/system/tests/modules/theme_test/theme_test.module b/core/modules/system/tests/modules/theme_test/theme_test.module index 301c19c..ef2ba34 100644 --- a/core/modules/system/tests/modules/theme_test/theme_test.module +++ b/core/modules/system/tests/modules/theme_test/theme_test.module @@ -103,14 +103,14 @@ function _theme_test_load_registry() { } /** - * Page callback; Used for testing themed output generated in hook_init(). + * Page callback: Used for testing themed output generated in hook_init(). */ function theme_test_hook_init_page_callback() { return $GLOBALS['theme_test_output']; } /** - * Page callback; Used for testing template overridding based on filename. + * Page callback: Used for testing template overridding based on filename. */ function theme_test_template_test_page_callback() { return theme('theme_test_template_test'); @@ -143,7 +143,7 @@ function _theme_custom_theme() { } /** - * Page callback; Calls drupal_alter(). + * Page callback: Calls drupal_alter(). * * This is for testing that the theme can have hook_*_alter() implementations * that run during page callback execution, even before theme() is called for @@ -156,7 +156,7 @@ function _theme_test_alter() { } /** - * Page callback; Calls a theme hook suggestion. + * Page callback: Calls a theme hook suggestion. */ function _theme_test_suggestion() { return theme(array('theme_test__suggestion', 'theme_test'), array()); diff --git a/core/modules/system/tests/modules/url_alter_test/url_alter_test.module b/core/modules/system/tests/modules/url_alter_test/url_alter_test.module index d7a5879..cdae14d 100644 --- a/core/modules/system/tests/modules/url_alter_test/url_alter_test.module +++ b/core/modules/system/tests/modules/url_alter_test/url_alter_test.module @@ -19,7 +19,7 @@ function url_alter_test_menu() { } /** - * Page callback; Displays current and request paths. + * Page callback: Displays current and request paths. */ function url_alter_test_foo() { print 'current_path=' . current_path() . ' request_path=' . request_path();