Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
eabf7ab4
Commit
eabf7ab4
authored
Oct 06, 2008
by
Dries
Browse files
- Patch
#180137
by c960657: added type hinting to make it easier to track down errors.
parent
e85f1b32
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
eabf7ab4
...
...
@@ -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
* alternative than url().
*/
function
url
(
$path
=
NULL
,
$options
=
array
())
{
function
url
(
$path
=
NULL
,
array
$options
=
array
())
{
// Merge in defaults.
$options
+=
array
(
'fragment'
=>
''
,
...
...
@@ -1491,7 +1491,7 @@ function drupal_attributes($attributes = array()) {
* @return
* 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.
$options
+=
array
(
'attributes'
=>
array
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment