Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
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'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!
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!
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 ?
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!!!