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

modules

hello!
i hav installed drupal on my PC. i want to write a module and test it.
how should i do it??

if i want to write a module for my one of the website file then how should i call the module from my php file?????????

kindly let me know

regards
surekha

Mailhandler - picking up mail from a local folder

I've been having some difficulty getting mailhandler to pick up mail from a local folder.

The permissions for my web server have been setup properly.

When I attempt to retrieve mail from the local folder (ex. /home/usr1/mail/cur) I get "Mailhandler could not access local folder: usr1@usr1.sys.net".

The folder listed above is where my mail goes to.

However when I type 'INBOX' in the folder settings I get "Mailhandler retrieve successful: 0 messages..."

LDAP Addressbook port from 4.7 to 5.x

Hi! I'm not sure if this is the right place for this post but it seemed the most appropriate at the time. If it isn't then please tell me where I should post about this and I will do so.

Help with drupal_execute

Hi Guys,

I'm having a problem programmatically submitting a simple form I use to filter a node results listing, when I use drupal_execute it either comes back with nothing or complaining that my 'form_id' is not a valid callback for call_user_func_array();.. Am I missing something obvious?

Here's the relevant info, thanks in advance!

(hivemind.module)

--> This added in hook_menu(), calls my function hivemind_filter_projects() with an argument of 9, I know this part of the process works correctly..


    $items[] = array( //--> Show me my assigned projects
      'path' => 'hivemind/myprojects',
      'title' => t('My Assigned Projects'),
      'callback' => 'hivemind_filter_projects',
      'callback arguments' => array(9),
      'access' => user_access('access hivemind main page'),
      type => MENU_CALLBACK
    );

--> my function hivemind_filter_projects()

<?php

function hivemind_filter_projects($filter_value) {

if (!isset($filter_value)) {
$filter_value = 'Filter Value Not Found!';
}
$form_id = 'hivemind-view-filter-form';
$form_state = array();
$form_state['values']['filter'] = $filter_value;

//--> Testing snippet.. This works by reporting 9 as the correct callback argument

Passing values from a select list

Hi,

I'm having problems with passing the value from a select list in my form.

I have a dropdown in my form with the names of users. I want to pass the selected user by it's uid to another function.

When validating i get the error 'no user' which I defined in the validation section.

I cannot figure out how it's done. Can somebody help me please ?


function uc_grouporder_create($uid = NULL) {
global $user;

if ($uid !== NULL) {
$order = uc_grouporder_new($uid, 1);
uc_order_comment_save($order->order_id, $user->uid, t('Order created by groupuser.'), 'admin');
drupal_goto('admin/store/orders/'. $order->order_id .'/edit');
}

$output = drupal_get_form('uc_grouporder_create_form');
return $output;
}

function uc_grouporder_create_form() {
global $user;
$form['customer'] = array(
'#type' => 'fieldset',
'#title' => t('New order customer'),
'#description' => t('Use the dropdown to create a blank order for the given user.'),
'#collapsible' => FALSE,
);

$formname="USER";
$vocabulary = db_query("select distinct a.uid, us.name from uc_address a inner join users us on us.uid=a.uid inner join users_roles ur on a.uid=ur.uid where rid in (select rid from users_roles where uid=%d)",$user->uid);

while ($term = db_fetch_object($vocabulary)) {
$options[$term->uid] = $term->name;

I've heard that a Netscape Bookmarkig module is avialable in Drupal

Please buddies help me out I wan to add netscape bookmarking tag into my website. And also want to add stumbleupon tag. Help me out.. which module can support above these tags.

Thanks

Bilal

Pages

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