Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
174aa41d
Commit
174aa41d
authored
Jun 15, 2009
by
Dries Buytaert
Browse files
- Patch
#491978
by Berdir: remove unnecessary &s.
parent
ecc24c5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
includes/xmlrpc.inc
View file @
174aa41d
...
...
@@ -51,7 +51,7 @@ function xmlrpc_value($data, $type = FALSE) {
* @see
* http://www.xmlrpc.com/spec#scalars
*/
function
xmlrpc_value_calculate_type
(
&
$xmlrpc_value
)
{
function
xmlrpc_value_calculate_type
(
$xmlrpc_value
)
{
// http://www.php.net/gettype: Never use gettype() to test for a certain type [...] Instead, use the is_* functions.
if
(
is_bool
(
$xmlrpc_value
->
data
))
{
return
'boolean'
;
...
...
@@ -156,7 +156,7 @@ function xmlrpc_message($message) {
* @return
* TRUE if parsing succeeded; FALSE otherwise
*/
function
xmlrpc_message_parse
(
&
$xmlrpc_message
)
{
function
xmlrpc_message_parse
(
$xmlrpc_message
)
{
// First remove the XML declaration
$xmlrpc_message
->
message
=
preg_replace
(
'/<\?xml(.*)?\?'
.
'>/'
,
''
,
$xmlrpc_message
->
message
);
if
(
trim
(
$xmlrpc_message
->
message
)
==
''
)
{
...
...
modules/field/modules/field_sql_storage/field_sql_storage.module
View file @
174aa41d
...
...
@@ -202,7 +202,7 @@ function field_sql_storage_field_storage_delete_field($field_name) {
/**
* Implement hook_field_storage_load().
*/
function
field_sql_storage_field_storage_load
(
$obj_type
,
&
$objects
,
$age
,
$skip_fields
=
array
())
{
function
field_sql_storage_field_storage_load
(
$obj_type
,
$objects
,
$age
,
$skip_fields
=
array
())
{
$etid
=
_field_sql_storage_etid
(
$obj_type
);
$load_current
=
$age
==
FIELD_LOAD_CURRENT
;
...
...
modules/node/content_types.inc
View file @
174aa41d
...
...
@@ -389,12 +389,12 @@ function node_node_type($op, $info) {
* Resets all of the relevant fields of a module-defined node type to their
* default values.
*
* @param
&
$type
* @param $type
* The node type to reset. The node type is passed back by reference with its
* resetted values. If there is no module-defined info for this node type,
* then nothing happens.
*/
function
node_type_reset
(
&
$type
)
{
function
node_type_reset
(
$type
)
{
$info_array
=
module_invoke_all
(
'node_info'
);
if
(
isset
(
$info_array
[
$type
->
orig_type
]))
{
$info_array
[
$type
->
orig_type
][
'type'
]
=
$type
->
orig_type
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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