diff --git a/includes/common.inc b/includes/common.inc index 5f7cdb8..d34c19d 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -6136,13 +6136,10 @@ function element_child($key) { } /** - * Identifies the children of an element array, optionally sorted by weight. - * - * The children of a element array are those key/value pairs whose key does - * not start with a '#'. See drupal_render() for details. + * Return the children of an element, optionally sorted by weight. * * @param $elements - * The element array whose children are to be identified. + * The element to be sorted. * @param $sort * Boolean to indicate whether the children should be sorted by weight. * @return diff --git a/modules/locale/tests/locale_test.js b/modules/locale/tests/locale_test.js deleted file mode 100644 index 251d115..0000000 --- a/modules/locale/tests/locale_test.js +++ /dev/null @@ -1,35 +0,0 @@ - -Drupal.t("Standard Call t"); -Drupal -. -t -( -"Whitespace Call t" -) -; - -Drupal.t('Single Quote t'); -Drupal.t('Single Quote \'Escaped\' t'); -Drupal.t('Single Quote ' + 'Concat ' + 'strings ' + 't'); - -Drupal.t("Double Quote t"); -Drupal.t("Double Quote \"Escaped\" t"); -Drupal.t("Double Quote " + "Concat " + "strings " + "t"); - - -Drupal.formatPlural(1, "Standard Call plural", "Standard Call @count plural"); -Drupal -. -formatPlural -( -1, -"Whitespace Call plural", -"Whitespace Call @count plural", -) -; - -Drupal.formatPlural(1, 'Single Quote plural', 'Single Quote @count plural'); -Drupal.formatPlural(1, 'Single Quote \'Escaped\' plural', 'Single Quote \'Escaped\' @count plural'); - -Drupal.formatPlural(1, "Double Quote plural", "Double Quote @count plural"); -Drupal.formatPlural(1, "Double Quote \"Escaped\" plural", "Double Quote \"Escaped\" @count plural"); diff --git a/modules/node/node.api.php b/modules/node/node.api.php index f57bccb..ace26fb 100644 --- a/modules/node/node.api.php +++ b/modules/node/node.api.php @@ -571,8 +571,8 @@ function hook_node_load($nodes, $types) { * Blindly returning FALSE will break other node access modules. * * @param object|string $node - * The node on which the operation is to be performed, or a string value - * representing the type of node. + * Either a node object or a (machine-readable) content type on which to + * perform the access check. * @param string $op * The operation to be performed. Possible values: * - "create" @@ -580,8 +580,8 @@ function hook_node_load($nodes, $types) { * - "update" * - "view" * @param object $account - * A user object representing the user for whom the operation is to be - * performed. + * A user object representing the user for whom the access check operation is + * to be performed. * * @return integer * NODE_ACCESS_ALLOW if the operation is to be allowed;