See the Mailing lists or Drupal Issue queue. There are also various working groups on groups.drupal.org

user_save doesn't do anything, neither causes any errors

Hi!

I'm developing my very first Drupal module, so I'm probably doing something wrong... or else I just found a bug. Hope you can help me find out what I might have done wrong. :)

My module is supposed to populate certain values from LDAP to the user's profile upon each login, not doing authentication as opposed to the ldap_integration module. (I'm going to use it alongside with the webserver_auth module.)

The problem is that user_save doesn't do anything for me, except for when the user doesn't have an LDAP entry... then it generates a new entry into the users table in the database (but not containing any useful info of course).

<?php
// $Id$
/*
simpldap module
Populates certain values from LDAP to the user's profile upon each login,
hence this is not an authentication module (such as the much more complex ldap_auth module).
(a bit of code stolen from: http://drupal.org/node/111768 )
*/

function simpldap_user($op, &$edit, &$account, $category = NULL) {
global $user;
if ($op == 'login') {
$ldap_server = 'ldap://ldap.arcada.fi/';
$ds=ldap_connect($ldap_server);
if ($ds) {
$user_name = $user->name;
$r=ldap_bind($ds);
// TODO - What to do if user doesn't exist?

Error while adding RSS feed

Following error occur when I try to add a new feed. I'm using drupal 5.1 with poormanscron module to update.

user warning: Field 'description' doesn't have a default value query: INSERT INTO aggregator_feed (fid, title, url, refresh, block) VALUES (4, 'title', 'http://www.somesite.com/news.rss 900, 5) in c:\domains\manageweb.info\wwwroot\drupal\includes\database.mysql.inc on line 172.

I think it related to php.
Because on php 5.1 site is running fine.

--
Sharique

Icon themes

In many places the use of icons makes for a nicer gui. In order to get a more unified look, it doesn't make sense if every module brings along it's own icons, but it should be able to ask the system for an icon by a functional name.
I think we need such an API in drupal core, but for prototyping and discussing a module in contrib should be fine.

In order to do that I have started a project: http://drupal.org/project/icontheme

How to schedule a revision posting?

Hi,

I have a page I update every sunday at night, but this sunday I'll can't make this update because I will not have access to internet. So I would like to create now a new revision of the page and schedule the publishing.

I have tried the Scheduler module but it works only for new nodes. I tried to define a date in the future for publishing but it unpublished my node and turned it unavailable.

How can I do this?

Thank you very much.

Squill'

Drupal offline applications - Firefox 3 (Gran Paradiso) makes it possible...

Well, it's not yet possible, but imagine:

... we could use the Drupal platform to easily develop "Thick clients"!
... people could write their blog entries or business notes in offline mode on their notebooks and then just sync it to their Drupal site as soon as they are online again! :)
... all you need is the next generation Firefox!

WHOW! That'd be cool - and in fact one day it will be possible! Firefox' "Web Applications 1.0" might even be the "next big thing"...

Custom menuing

Okay, so here's the skinny; I'm trying to create a custom menu and am having great success! However, I am using global $_menu to return the menu ids for my main menu, but that doesn't take into account their weight. Is there a way to sort the array that is returned by the children's weight? So for example let us say that $_menu['items'][36]['children'] returns the following array

Array
(
[0] => 35
[1] => 87
[2] => 98
[3] => 106
[4] => 112
[5] => 119
[6] => 145
)

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Drupal core