diff --git a/core/modules/path/path.admin.inc b/core/modules/path/path.admin.inc index 4188eff..70725cd 100644 --- a/core/modules/path/path.admin.inc +++ b/core/modules/path/path.admin.inc @@ -97,10 +97,10 @@ function path_admin_overview($keys = NULL) { /** * Page callback: Returns a form creating or editing a path alias. * - * @param $path + * @param array $path * An array containing the path ID, source, alias, and language code. * - * @return + * @return array * A form for adding or editing a URL alias. * * @see path_menu() @@ -120,7 +120,7 @@ function path_admin_edit($path = array()) { /** * Form constructor for the path administration form. * - * @param $path + * @param array $path * An array containing the path ID, source, alias, and language code. * * @ingroup forms @@ -128,7 +128,11 @@ function path_admin_edit($path = array()) { * @see path_admin_form_submit() * @see path_admin_form_delete_submit() */ -function path_admin_form($form, &$form_state, $path = array('source' => '', 'alias' => '', 'langcode' => LANGUAGE_NOT_SPECIFIED, 'pid' => NULL)) { +function path_admin_form($form, &$form_state, $path = array( + 'source' => '', + 'alias' => '', + 'langcode' => LANGUAGE_NOT_SPECIFIED, + 'pid' => NULL)) { $form['source'] = array( '#type' => 'textfield', '#title' => t('Existing system path'), @@ -171,7 +175,7 @@ function path_admin_form($form, &$form_state, $path = array('source' => '', 'ali else { $form['langcode'] = array( '#type' => 'value', - '#value' => $path['langcode'] + '#value' => $path['langcode'], ); } @@ -259,7 +263,7 @@ function path_admin_form_submit($form, &$form_state) { /** * Form constructor for the path deletion form. * - * @param $path + * @param array $path * The path alias that will be deleted. * * @see path_admin_delete_confirm_submit() @@ -296,7 +300,8 @@ function path_admin_delete_confirm_submit($form, &$form_state) { */ function path_admin_filter_form($form, &$form_state, $keys = '') { $form['#attributes'] = array('class' => array('search-form')); - $form['basic'] = array('#type' => 'fieldset', + $form['basic'] = array( + '#type' => 'fieldset', '#title' => t('Filter aliases'), '#attributes' => array('class' => array('container-inline')), ); @@ -312,7 +317,7 @@ function path_admin_filter_form($form, &$form_state, $keys = '') { '#type' => 'submit', '#value' => t('Filter'), '#submit' => array('path_admin_filter_form_submit_filter'), - ); + ); if ($keys) { $form['basic']['reset'] = array( '#type' => 'submit', diff --git a/core/modules/path/path.api.php b/core/modules/path/path.api.php index f2c5ece..0b1fd70 100644 --- a/core/modules/path/path.api.php +++ b/core/modules/path/path.api.php @@ -13,7 +13,7 @@ /** * Respond to a path being inserted. * - * @param $path + * @param array $path * An associative array containing the following keys: * - source: The internal system path. * - alias: The URL alias. @@ -34,7 +34,7 @@ function hook_path_insert($path) { /** * Respond to a path being updated. * - * @param $path + * @param array $path * An associative array containing the following keys: * - source: The internal system path. * - alias: The URL alias. @@ -53,7 +53,7 @@ function hook_path_update($path) { /** * Respond to a path being deleted. * - * @param $path + * @param array $path * An associative array containing the following keys: * - source: The internal system path. * - alias: The URL alias.