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

How to use pager_query with an array parameter ?

Hello,

I made a block which is an form with 2 fields. When i submit this block form, i expect to list the results of the query in a paged table. But it fails on the second pasge, because the url variable is an array. How to solve that with Drupal ? Help is very much welcome. Thank's in adavnce .

Here is an simplification of my code.

function af_block($op='search', $delta=0) {
$form = form_textfield(t('City'), 'city, '', 15, 100);
$form .= form_textfield(t('PostCode'), 'cp', '', 5, 5);
$form .= form_submit(t('Search'));
$content .= form($form, 'post', url('af/search'));
$block["content"] = $content;
return $block;
}

function af_menu($may_cache) {
$items = array();
$items[] = array('path' => 'af/search',
'title' => t('Recherche Fleuristes'),
'access' => 'access content',
'callback' => 'af_list',
'type' => MENU_CALLBACK);
return $items;
}

function af_list() {
$edit = $_POST['edit']; // $edit is = NULL in the second page
$header = array(array('data' => t('Name'), 'field' => 'organization_name'),
array('data' => t('Adress'), 'field' => 'street_address'),
array('data' => t('City'), 'field' => 'city'));

$params = array("postal_code" => $edit['cp']);

// Simplification with only on query

Dadabik into Drupal?

Hello there,

is it possible to somehow insert Dadabik into Drupal?

I have a large (1,000 and growing) dadabik-searchable pair of My SQL tables, and I need them to be operable within the framework of a Drupal page. I suppose I could just have a link to the Dadabik tables - but I need the password-protection infrastructure of the Drupal website.

What should I do? Can information about this be found in the manual somewhere?

Thank you!
terri

Add image button - with TinyMCE simple theme.

I have been using the new img_assist module that is at the moment in beta. It is working great for my present purposes. I would like to use it with the TinyMCE editor - but at the moment the 'drupalimage' plugin only makes the 'add image' button available with the TinyMCE advanced theme.

Our users do not need the advaced theme so we would like to enable it on the simple theme. I have tried hacking the the plugin - but with no joy.

Has anyone else managed to do this or got any suggestions about approaching this problem.

Issue with Securesite module

Ok, I have securesite installed and it works extremely well. I am much more comfortable about the security of the site now.

When I login, I get the drupal login screen and I am able to login. Perfect. However, when i logout, I get the normal windows htaccess popup asking for a username and password. I have to hit cancel, then reload the site to login again.

It appears as though securesite releases the access before drupal has finished completing the logout. Is there a workaround for this? Does anyone else have a creative way around this?

TIA

Norm

privatemsgs

users can't see inbox(0) in their menu. only admin can see it.

Adding user permissions to page.module

I'm trying to add the same access control features from node.module into page.module. I added an 'access content' permission, and then in page_access I added a user_access check that I copied straight out of node.module.

Neither change is working. Anonymous users can access pages (but not nodes), and there are no new permissions in the page module section of access control. I've disabled and enabled the module, and I've re-started the web server, but still no dice.

Any ideas?

Thanks

Pages

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