From 637004c5391eb48b473a80df1de425aaae8edc25 Mon Sep 17 00:00:00 2001
From: Dries Buytaert Once you've written and tested your authentication module, you'll have to usually
want to share it with the world. The best way to do this is to add the module
to the Drupal
- contributions CVS repository. You'll need to request priveleges in this repository - see README
+ contributions CVS repository. You'll need to request priveleges in this repository - see README
for the details. Then you'll want to announce your contribution on the Drupal.org. The _user() hook provides to module authors a mechanism for inserting text and form fields into the registration page, the user account view/edit pages, and the administer users page. This is useful if you want to add a custom field for your particular community. This is best illustrated by an example called profile.module in the contributions CVS repository. Profile.module is meant to be customized for your needs. Please download it and hack away until it does what you need. Consider this simpler example from a fictional recipe community web site called Julia's Kitchen. Julia customizes her Drupal powered site by creating a new file called julia.module. That file does the following:
-- new members must agree to Julia's Privacy Policy on the reg page.
-- members may list their favorite ingredients on their public user profile page Consider this simpler example from a fictional recipe community web site called Julia's Kitchen. Julia customizes her Drupal powered site by creating a new file called julia.module. That file does the following:
$result = $client->send($message, 5);
+ $client = new xmlrpc_client("/api/RPC2", "plant.blogger.com");
+ $result = $client->send($message, 5);
// Since Blogger doesn't return a properly formed FaultCode, we just search for the string 'fault'.
if ($result && !stristr($result->serialize(), "fault")) {
@@ -1829,7 +1830,7 @@ function user_help_devel_da() {
<p>You may login to <i>%s</i> using a <b>Blogger ID</b>
and password. A Blogger ID consists of your Blogger username followed by <i>@blogger.com</i>.
So a valid blogger ID is mwlily@blogger.com. If you are a Blogger member, go
- ahead and login now.</p>
+ ahead and login now.</p>
<p>Blogger offers you instant communication power by letting you post
your thoughts to the web whenever the urge strikes.
Blogger will publish to your current web site or help you create one. <a
@@ -1848,7 +1849,7 @@ function user_help_devel_da() {
module_user()
+
Julia achieves this with the following code. The comments below should help you understand what is going on.
-- cgit v1.2.3