Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
5a646024
Commit
5a646024
authored
22 years ago
by
Kjartan Mannes
Browse files
Options
Downloads
Patches
Plain Diff
- Ahem , trailing spaces.
parent
1421c878
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/node.module
+6
-6
6 additions, 6 deletions
modules/node.module
modules/node/node.module
+6
-6
6 additions, 6 deletions
modules/node/node.module
with
12 additions
and
12 deletions
modules/node.module
+
6
−
6
View file @
5a646024
...
@@ -528,7 +528,7 @@ function node_admin_nodes() {
...
@@ -528,7 +528,7 @@ function node_admin_nodes() {
function
node_admin_settings
(
$edit
)
{
function
node_admin_settings
(
$edit
)
{
global
$op
;
global
$op
;
if
(
$op
==
t
(
"Save configuration"
))
{
if
(
$op
==
t
(
"Save configuration"
))
{
/*
/*
** Save the configuration options:
** Save the configuration options:
...
@@ -562,14 +562,14 @@ function node_admin_settings($edit) {
...
@@ -562,14 +562,14 @@ function node_admin_settings($edit) {
$rows
[]
=
array_merge
(
array
(
module_invoke
(
$name
,
"node"
,
"name"
)),
$cols
);
$rows
[]
=
array_merge
(
array
(
module_invoke
(
$name
,
"node"
,
"name"
)),
$cols
);
}
}
}
}
$output
.
=
table
(
$header
,
$rows
);
$output
.
=
table
(
$header
,
$rows
);
/* This is an idea for the future.
/* This is an idea for the future.
foreach (module_list() as $name) {
foreach (module_list() as $name) {
if (module_hook($name, "node")) {
if (module_hook($name, "node")) {
$node->type = $name;
$node->type = $name;
// Create table() data:
// Create table() data:
$header = array_keys(node_invoke_all($node, "nodeapi", "settings"));
$header = array_keys(node_invoke_all($node, "nodeapi", "settings"));
$cols = array();
$cols = array();
...
@@ -586,7 +586,7 @@ function node_admin_settings($edit) {
...
@@ -586,7 +586,7 @@ function node_admin_settings($edit) {
$output
.
=
form_submit
(
t
(
"Save configuration"
));
$output
.
=
form_submit
(
t
(
"Save configuration"
));
$output
.
=
form_submit
(
t
(
"Reset to defaults"
));
$output
.
=
form_submit
(
t
(
"Reset to defaults"
));
print
form
(
$output
);
print
form
(
$output
);
}
}
...
@@ -840,7 +840,7 @@ function node_validate($node, &$error) {
...
@@ -840,7 +840,7 @@ function node_validate($node, &$error) {
if
(
!
$node
->
date
)
{
if
(
!
$node
->
date
)
{
$node
->
date
=
date
(
"M j, Y g:i a"
,
$node
->
created
);
$node
->
date
=
date
(
"M j, Y g:i a"
,
$node
->
created
);
}
}
if
(
!
is_numeric
(
$node
->
status
))
{
if
(
!
is_numeric
(
$node
->
status
))
{
$node
->
status
=
1
;
$node
->
status
=
1
;
}
}
...
@@ -923,7 +923,7 @@ function node_form($edit, $error = NULL) {
...
@@ -923,7 +923,7 @@ function node_form($edit, $error = NULL) {
if
(
function_exists
(
$function
))
{
if
(
function_exists
(
$function
))
{
$form
.
=
$function
(
$edit
,
$help
,
$error
,
$param
);
$form
.
=
$function
(
$edit
,
$help
,
$error
,
$param
);
}
}
// Append extra node form:
// Append extra node form:
$form
.
=
implode
(
""
,
node_invoke_all
(
$edit
,
"nodeapi"
,
"form post"
,
$error
));
$form
.
=
implode
(
""
,
node_invoke_all
(
$edit
,
"nodeapi"
,
"form post"
,
$error
));
...
...
This diff is collapsed.
Click to expand it.
modules/node/node.module
+
6
−
6
View file @
5a646024
...
@@ -528,7 +528,7 @@ function node_admin_nodes() {
...
@@ -528,7 +528,7 @@ function node_admin_nodes() {
function
node_admin_settings
(
$edit
)
{
function
node_admin_settings
(
$edit
)
{
global
$op
;
global
$op
;
if
(
$op
==
t
(
"Save configuration"
))
{
if
(
$op
==
t
(
"Save configuration"
))
{
/*
/*
** Save the configuration options:
** Save the configuration options:
...
@@ -562,14 +562,14 @@ function node_admin_settings($edit) {
...
@@ -562,14 +562,14 @@ function node_admin_settings($edit) {
$rows
[]
=
array_merge
(
array
(
module_invoke
(
$name
,
"node"
,
"name"
)),
$cols
);
$rows
[]
=
array_merge
(
array
(
module_invoke
(
$name
,
"node"
,
"name"
)),
$cols
);
}
}
}
}
$output
.
=
table
(
$header
,
$rows
);
$output
.
=
table
(
$header
,
$rows
);
/* This is an idea for the future.
/* This is an idea for the future.
foreach (module_list() as $name) {
foreach (module_list() as $name) {
if (module_hook($name, "node")) {
if (module_hook($name, "node")) {
$node->type = $name;
$node->type = $name;
// Create table() data:
// Create table() data:
$header = array_keys(node_invoke_all($node, "nodeapi", "settings"));
$header = array_keys(node_invoke_all($node, "nodeapi", "settings"));
$cols = array();
$cols = array();
...
@@ -586,7 +586,7 @@ function node_admin_settings($edit) {
...
@@ -586,7 +586,7 @@ function node_admin_settings($edit) {
$output
.
=
form_submit
(
t
(
"Save configuration"
));
$output
.
=
form_submit
(
t
(
"Save configuration"
));
$output
.
=
form_submit
(
t
(
"Reset to defaults"
));
$output
.
=
form_submit
(
t
(
"Reset to defaults"
));
print
form
(
$output
);
print
form
(
$output
);
}
}
...
@@ -840,7 +840,7 @@ function node_validate($node, &$error) {
...
@@ -840,7 +840,7 @@ function node_validate($node, &$error) {
if
(
!
$node
->
date
)
{
if
(
!
$node
->
date
)
{
$node
->
date
=
date
(
"M j, Y g:i a"
,
$node
->
created
);
$node
->
date
=
date
(
"M j, Y g:i a"
,
$node
->
created
);
}
}
if
(
!
is_numeric
(
$node
->
status
))
{
if
(
!
is_numeric
(
$node
->
status
))
{
$node
->
status
=
1
;
$node
->
status
=
1
;
}
}
...
@@ -923,7 +923,7 @@ function node_form($edit, $error = NULL) {
...
@@ -923,7 +923,7 @@ function node_form($edit, $error = NULL) {
if
(
function_exists
(
$function
))
{
if
(
function_exists
(
$function
))
{
$form
.
=
$function
(
$edit
,
$help
,
$error
,
$param
);
$form
.
=
$function
(
$edit
,
$help
,
$error
,
$param
);
}
}
// Append extra node form:
// Append extra node form:
$form
.
=
implode
(
""
,
node_invoke_all
(
$edit
,
"nodeapi"
,
"form post"
,
$error
));
$form
.
=
implode
(
""
,
node_invoke_all
(
$edit
,
"nodeapi"
,
"form post"
,
$error
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment