[documentation] [task] document vars used on /admin/settings/user

Amazon drupal-docs at drupal.org
Fri Jan 6 15:38:21 UTC 2006


Issue status update for 
http://drupal.org/node/43490
Post a follow up: 
http://drupal.org/project/comments/add/43490

 Project:      Documentation
 Version:      <none>
 Component:    Admin Guide
 Category:     tasks
 Priority:     normal
 Assigned to:  Bèr Kessels
 Reported by:  Bèr Kessels
 Updated by:   Amazon
 Status:       active

Ber, what page are you talking about?


I assume it's not this one.  http://drupal.org/handbook/modules/user


I am happy to help edit your documentation when you take the initiative
to get things started.


Kieran




Amazon



Previous comments:
------------------------------------------------------------------------

Thu, 05 Jan 2006 21:45:47 +0000 : Bèr Kessels

I just wanted to adjust the user registration mails but was very
unpleasantly
surprised :). The documentation about the variables is not too good. 


I could not find anything on drupal.org. But more importantly, the
online
documentation is very bad. 


Customize the body of the welcome e-mail, which is sent to new members
upon
registering. Available variables are: %username, %site, %password,
%uri,
%uri_brief, %mailto, %login_uri, %edit_uri, %login_url.


tells me absolutely nothing about what var does what. Off course I dove
into
the PHP to find out how to write a nice mail. But I think we should be
able
to come up with something better. :) 


I tried, but unfortunately my engrish is just not good enough to
condense this
into a nice, usefull help text.


FWIW, this is the code


'%username' => $account->name,
'%site' => variable_get('site_name', 'drupal'), //plain text name
'%login_url' => user_pass_reset_url($account), //not the url to login,
but the
hashed url!
'%uri' => $base_url,
'%uri_brief' => substr($base_url, strlen('http://')), //Why we need
this, I
dont know.
'%mailto' => $account->mail,
'%date' => format_date(time()),
'%login_uri' => url('user', NULL, NULL, TRUE), // Now this is not a
RUL, but a
uri. :) makes sense, huh?
'%edit_uri' => url('user/'. $account->uid .'/edit', NULL, NULL, TRUE));


Maybe someone can come up with some better docs?






More information about the documentation mailing list