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

need help with forms

How do I make a custom free tagging form in drupal 4.7.0? I really need to change the 'maxlength' parameter for a taxonomy field and populate it with the list of taxonomies.

Please help! (><)

Tow forms: one default, one in block

I have two forms on the page. When I submit one, e.g. not entering body, it highlights body textarea, but the second highlights body textarea too.
How do I beat this? Possible?

hook_menu and more than two levels of tabs

if you go to http://drupal.org/user/ and click on the 'edit' tab, you'll see "sub tabs".

i'm writing a module that will provide similar navigation, however, i want more than two levels of tabs.

two levels is no problem and there are plenty of examples to work from.

but i've seen no examples of 3 or more levels of tabs, and my efforts to create them have all failed.

it seems to me that it might not be possible as it seems a menu item cannot be a parent tab and a child tab at the same time.

roundcubemail (rcmail) module support for 4.7

Hello,

I went looking on the site for information on this module. I have it working on 4.6 but was unable to get it working in 4.7. Has anyone been able to do this OR is an update for rcmail available on 4.7 (or soon)?

Thanks,

Matt

upgrade 4.6 user_view module to 4.7

Hello,

I've looked at the 4.6-4.7 module upgrade docs at http://drupal.org/node/22218 but didn't find anything useful on this. I have a module that used to add some custom data to the end of user profiles.

define (MARLBORO_PROFILES_LIST_TITLE, 'Marlboro Profile');
define (MARLBORO_PROFILES_RECENT_ITEMS_NUM, 10);

function marlboro_profiles_user ($op, &$edit, &$user, &$category = NULL) {
        switch ($op) {
                case 'view':
                        return marlboro_profiles_user_view ($user);
                        break;
        }
}

function marlboro_profiles_user_view(&$user) {
        $attrs = array('displayname' => 'full name', 'mail' => 'email address', 'edumarlborostatus' => 'status', 'edumarlboroclass' => 'class standing',
                        'telephonenumber' => 'phone', 'edumarlborocampusbox' => 'box'
                        );
        $ret[MARLBORO_PROFILES_LIST_TITLE] = theme ('marlboro_profiles_attribute', $attrs, $user);
        return $ret;
}

If I replace the last two lines of ..._user_view with a "print (theme(...))" call, all the data is printed correctly, but at the top of the page, so I know the data is being retrieved. I'm getting this error in the logs

Invalid argument supplied for foreach() in /var/www/drupal-4.7.0/modules/user.module on line 1453.

I just can't figure out what structure user.module is expecting for the data. I hardly understand the Drupal API, I'm just hacking together this and that, so my debugging skills are limited.

Image module?

I just installed Drupal 4.7 and it looks great, but I can't figure out how to upload images. It looks like the image module that worked with 4.6 didn't make it to 4.7. Was it replaced with something else? Looked, but couldn't find anything similar. Sorry if I just missed something. Thanks.

Pages

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