Skip to content
Snippets Groups Projects
Commit 5a646024 authored by Kjartan Mannes's avatar Kjartan Mannes
Browse files

- Ahem , trailing spaces.

parent 1421c878
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -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));
......
...@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment