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

Events and menu items

Hi all

I am using the event and flexinode modules. I have created 2 flexinodes and enabled them as events. My menu is split into two main sections with child items beneath each.

I wanted to have child menu items under both menus pointing to the events calendar for the different flexinode types I created.

i.e.:
Menu1
-- item
-- item
-- events (goes to event/type/1)
Menu2
-- item
-- item
-- events (goes to event/type/2)

Adding AJAX popup to Taxonomy_DHTML

Hey guys,

I'm using Taxonomy_DHTML, and I'm trying to add an extra js event. When someone clicks on a menu item in the overview section (example here: http://www.basecampmanagement.com/taxonomy_dhtml), the menu expands accordingly, just like it should. Fantastic!

simplenews problem

Hi guys,
Wondering if anyone here can help me with the simplenews module. I can figure out how to compose the mailing, but can't for the life of me figure out how to send the damn thing. I can't find a send button! Help please!!!
Thank you!

Need help on a form validation

Hi all,

I hope to post in the correct section...
Excuse me in advance for my bad english, I'm french and very tired...

I've recently discovered Drupal and really enjoy this tool, but I don't understand how to modify posted values in the validate function...
I saw "form_set_value()" can modify values which will be transmitted in the submit process,
but in the case of an error appears in validate, these modifications are lost !

How could I do to set new values accessible in the form redisplayed ?

See ya.
Sébastien

Custom module to set online/offline a drupal website

Hi! I'm trying to develop a small module for let an user withouth the site administration permissions to set the site "online/offline". I've write this file ( online.module ) :

<?php

function online_help($section='') {
  $output = '';

  switch ($section) {
    case "admin/modules#description":
      $output = t("Abilita/Disabilita l'accesso al sito");
      break;
  }

  return $output;
}


function online_perm() {
  return array('enable website');
} 


function online_settings() {  

if (user_access('enable website')) {
    
  $form['site_status']['site_offline'] = array(
    '#type' => 'radios',
    '#title' => t('Site status'),
    '#default_value' => variable_get('site_offline', 0),
    '#options' => array(t('Online'), t('Off-line')),
    '#description' => t('When set to "Online", all visitors will be able to browse your site normally. When set to "Off-line", only users with the "administer site configuration" permission will be able to access your site to perform maintenance; all other visitors will see the site off-line message configured below. Authorized users can log in during "Off-line" mode directly via the <a href="%user-login">user login</a> page.', array('%user-login' => url('user'))),
  );

 return $form;
}

}

The problem is simple: the hook_settings doesn't use my online_perm() but only the site administrations permissions. So actually only the site administrators can view this page, other users cannot!!!

Is there any session management object in Drupal?

Hi,

Is there any session management object in Drupal, or any other way to store user depended variables?

Any ideas?

Thanks.

Pages

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