Commit eabf7ab4 authored by Dries's avatar Dries
Browse files

- Patch #180137 by c960657: added type hinting to make it easier to track down errors.

parent e85f1b32
...@@ -1318,7 +1318,7 @@ function format_date($timestamp, $type = 'medium', $format = '', $timezone = NUL ...@@ -1318,7 +1318,7 @@ function format_date($timestamp, $type = 'medium', $format = '', $timezone = NUL
* When creating links in modules, consider whether l() could be a better * When creating links in modules, consider whether l() could be a better
* alternative than url(). * alternative than url().
*/ */
function url($path = NULL, $options = array()) { function url($path = NULL, array $options = array()) {
// Merge in defaults. // Merge in defaults.
$options += array( $options += array(
'fragment' => '', 'fragment' => '',
...@@ -1491,7 +1491,7 @@ function drupal_attributes($attributes = array()) { ...@@ -1491,7 +1491,7 @@ function drupal_attributes($attributes = array()) {
* @return * @return
* an HTML string containing a link to the given path. * an HTML string containing a link to the given path.
*/ */
function l($text, $path, $options = array()) { function l($text, $path, array $options = array()) {
// Merge in defaults. // Merge in defaults.
$options += array( $options += array(
'attributes' => array(), 'attributes' => array(),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment