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
5a646024
Commit
5a646024
authored
Mar 09, 2003
by
Kjartan
Browse files
- Ahem , trailing spaces.
parent
1421c878
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
5a646024
...
...
@@ -528,7 +528,7 @@ function node_admin_nodes() {
function
node_admin_settings
(
$edit
)
{
global
$op
;
if
(
$op
==
t
(
"Save configuration"
))
{
/*
** Save the configuration options:
...
...
@@ -562,14 +562,14 @@ function node_admin_settings($edit) {
$rows
[]
=
array_merge
(
array
(
module_invoke
(
$name
,
"node"
,
"name"
)),
$cols
);
}
}
$output
.
=
table
(
$header
,
$rows
);
/* This is an idea for the future.
foreach (module_list() as $name) {
if (module_hook($name, "node")) {
$node->type = $name;
// Create table() data:
$header = array_keys(node_invoke_all($node, "nodeapi", "settings"));
$cols = array();
...
...
@@ -586,7 +586,7 @@ function node_admin_settings($edit) {
$output
.
=
form_submit
(
t
(
"Save configuration"
));
$output
.
=
form_submit
(
t
(
"Reset to defaults"
));
print
form
(
$output
);
}
...
...
@@ -840,7 +840,7 @@ function node_validate($node, &$error) {
if
(
!
$node
->
date
)
{
$node
->
date
=
date
(
"M j, Y g:i a"
,
$node
->
created
);
}
if
(
!
is_numeric
(
$node
->
status
))
{
$node
->
status
=
1
;
}
...
...
@@ -923,7 +923,7 @@ function node_form($edit, $error = NULL) {
if
(
function_exists
(
$function
))
{
$form
.
=
$function
(
$edit
,
$help
,
$error
,
$param
);
}
// Append extra node form:
$form
.
=
implode
(
""
,
node_invoke_all
(
$edit
,
"nodeapi"
,
"form post"
,
$error
));
...
...
modules/node/node.module
View file @
5a646024
...
...
@@ -528,7 +528,7 @@ function node_admin_nodes() {
function
node_admin_settings
(
$edit
)
{
global
$op
;
if
(
$op
==
t
(
"Save configuration"
))
{
/*
** Save the configuration options:
...
...
@@ -562,14 +562,14 @@ function node_admin_settings($edit) {
$rows
[]
=
array_merge
(
array
(
module_invoke
(
$name
,
"node"
,
"name"
)),
$cols
);
}
}
$output
.
=
table
(
$header
,
$rows
);
/* This is an idea for the future.
foreach (module_list() as $name) {
if (module_hook($name, "node")) {
$node->type = $name;
// Create table() data:
$header = array_keys(node_invoke_all($node, "nodeapi", "settings"));
$cols = array();
...
...
@@ -586,7 +586,7 @@ function node_admin_settings($edit) {
$output
.
=
form_submit
(
t
(
"Save configuration"
));
$output
.
=
form_submit
(
t
(
"Reset to defaults"
));
print
form
(
$output
);
}
...
...
@@ -840,7 +840,7 @@ function node_validate($node, &$error) {
if
(
!
$node
->
date
)
{
$node
->
date
=
date
(
"M j, Y g:i a"
,
$node
->
created
);
}
if
(
!
is_numeric
(
$node
->
status
))
{
$node
->
status
=
1
;
}
...
...
@@ -923,7 +923,7 @@ function node_form($edit, $error = NULL) {
if
(
function_exists
(
$function
))
{
$form
.
=
$function
(
$edit
,
$help
,
$error
,
$param
);
}
// Append extra node form:
$form
.
=
implode
(
""
,
node_invoke_all
(
$edit
,
"nodeapi"
,
"form post"
,
$error
));
...
...
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