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
a93b2a17
Commit
a93b2a17
authored
May 02, 2002
by
Kjartan
Browse files
- user.module used a obsolete variable_get.
- set blocks for new users.
parent
837041f1
Changes
4
Hide whitespace changes
Inline
Side-by-side
modules/block.module
View file @
a93b2a17
...
...
@@ -248,6 +248,14 @@ function block_admin() {
function
block_user
(
$type
,
&
$edit
,
&
$user
)
{
switch
(
$type
)
{
case
"register_form"
:
$result
=
db_query
(
"SELECT * FROM blocks WHERE custom = '%d' ORDER BY name"
,
1
);
while
(
$block
=
db_fetch_object
(
$result
))
{
$form
.
=
form_hidden
(
"block][
$block->name
"
,
$block
->
status
);
}
return
$form
;
case
"edit_form"
:
$result
=
db_query
(
"SELECT * FROM blocks WHERE custom = '%d' ORDER BY name"
,
1
);
...
...
modules/block/block.module
View file @
a93b2a17
...
...
@@ -248,6 +248,14 @@ function block_admin() {
function
block_user
(
$type
,
&
$edit
,
&
$user
)
{
switch
(
$type
)
{
case
"register_form"
:
$result
=
db_query
(
"SELECT * FROM blocks WHERE custom = '%d' ORDER BY name"
,
1
);
while
(
$block
=
db_fetch_object
(
$result
))
{
$form
.
=
form_hidden
(
"block][
$block->name
"
,
$block
->
status
);
}
return
$form
;
case
"edit_form"
:
$result
=
db_query
(
"SELECT * FROM blocks WHERE custom = '%d' ORDER BY name"
,
1
);
...
...
modules/user.module
View file @
a93b2a17
...
...
@@ -480,7 +480,7 @@ function user_block() {
$output
.
=
"<input name=
\"
edit[remember_me]
\"
type=
\"
checkbox
\"
/>"
.
t
(
"Remember me"
)
.
"<br />
\n
"
;
$output
.
=
"<input name=
\"
edit[op]
\"
type=
\"
submit
\"
value=
\"
"
.
t
(
"Log in"
)
.
"
\"
/><br />
\n
"
;
$output
.
=
"</form></div>
\n
"
;
if
(
variable_get
(
"
account
_register"
,
1
))
{
if
(
variable_get
(
"
user
_register"
,
1
))
{
$output
.
=
"» "
.
lm
(
t
(
"Register"
),
array
(
"mod"
=>
"user"
,
"op"
=>
"register"
),
t
(
"Create a new user account."
))
.
"
\n
"
;
}
$output
.
=
"<br />» "
.
lm
(
t
(
"New password"
),
array
(
"mod"
=>
"user"
,
"op"
=>
"password"
),
t
(
"Request new password via e-mail"
))
.
"<br />"
;
...
...
modules/user/user.module
View file @
a93b2a17
...
...
@@ -480,7 +480,7 @@ function user_block() {
$output
.
=
"<input name=
\"
edit[remember_me]
\"
type=
\"
checkbox
\"
/>"
.
t
(
"Remember me"
)
.
"<br />
\n
"
;
$output
.
=
"<input name=
\"
edit[op]
\"
type=
\"
submit
\"
value=
\"
"
.
t
(
"Log in"
)
.
"
\"
/><br />
\n
"
;
$output
.
=
"</form></div>
\n
"
;
if
(
variable_get
(
"
account
_register"
,
1
))
{
if
(
variable_get
(
"
user
_register"
,
1
))
{
$output
.
=
"» "
.
lm
(
t
(
"Register"
),
array
(
"mod"
=>
"user"
,
"op"
=>
"register"
),
t
(
"Create a new user account."
))
.
"
\n
"
;
}
$output
.
=
"<br />» "
.
lm
(
t
(
"New password"
),
array
(
"mod"
=>
"user"
,
"op"
=>
"password"
),
t
(
"Request new password via e-mail"
))
.
"<br />"
;
...
...
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