This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Current User Menu Item

I am trying to write a module that defines a menu item which I would like to have the following characteristics:

* Link text to be the user's login name
* Link should go to the "edit" page of that user
* Have the ability to move this menu item (I really want this in the primary menu)
* It only show up if the user is logged in

I've seen several posts on blocks and whatnot, but I really need this to be a menu item. This also seems so simple, but after working on this for a while now I feel like I'm taking crazy pills.

Any help?

New Content Type - "Care Sheets"

Hi, how would I create a new content type with new fields? I have members that want to create CareSheets for Orchids. It would be basically the same thing like submitting a story, but it would have extra fields, like (humidity, pH, soil, growing notes, etc, etc). Is there a mod that's out there where you can create new content types ???

Any help would be greatly appreciated

Basecamp Vs Drupal Projects - who wins ?

Don't laugh. It's a serious question. I am testing Drupal Projects and Basecamp, but it does not give me the ability to edit certain areas.

I like what I see in Drupal Projects.

Are you using Drupal Projects or Basecamp to manage clients and users ? What's your opinion ?

marcel
China Site Seeing
http://ComputingNews.com
http://Diarist.com

How to pass more than one argument to the nodereference/autocomplete/"some field" AJAX ?

Hi
I am making a widget to extend the autocomplete box by giving it more fields to search on.
the widget field type is a nodereference
i was looking through drupal posts and i was looking for how to do this , but i didn't find.

my question is how to pass more arguments to the Ajax if possible so i could cut down the results of the autocomplete text box and get more compact results.

thanks

Newsletter related

Hi.
Here is a little snippet of code that for some reason doesn't work.

Why is my hook_widget function called here?

When creating a field with CCK that uses my widget, I'm finding my mywidget_widget function is being called with op='form'. - As in while I'm still in the admin's configuration page (admin/content/types/expense/fields/field_my_field).
This seemed not to matter on the first widget I made, but the widget I'm currently working on hacks the form quite a bit, and it's now appearing after 'submit' has been pressed (along with warnings that various fields haven't been filled in).

Basically: Why is my hook_widget being called with op='form'??? (or at all, really).

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions