Localized taxonomy term returns 404

I have a problem regarding taxonomy terms in multilingual site.
I got taxonomy terms (language: undefined) with several categories of products translated via LOCALIZE.
In default language I have no problem accessing term default_language/taxonomy/term/%, but when I switch language, language/taxonomy/term/% returns page 404.
Do you have any clue, how to fix it?
Thanx a lot

Menu item not hiding

I have created a new content type and only certain roles are allowed to create it. I have added a menu item to the main menu for this that links to this address: http://mysite.com/?q=node/add/new-content-type

The problem being that anonymous users who don't have access to this item can still see the menu item. If they click on it it just takes them to an access denied page! Confused.

Form submits via AJAX following validation error

Hi all,

I'm having trouble with a form which submits via ajax when I don't want it to. I have a form with 4 elements and only one element (a single select box) has ajax functionality. If the form is submitted and a validation error occurs, the submit element gets an ajax-processed class and the next time the submit button is clicked, it gets submitted via ajax rather than a standard http post. I want the form to always submit via a standard http post, not by ajax.

Here is my form builder function:

function tickets_quick_search_form() {
$nodes = find_theatreshow_nodes(array('orderBy'=>'title'));
if (empty($nodes)) {
return array();

foreach ($nodes as $node) {
$event_options[$node->matchpoint_id['und'][0]['value']] = $node->title;

$event_options = array('' => t('Choose show...')) + $event_options;

$form = array();
$form['#name'] = 'ticket-quick-search-form';
$form['#submit'][] = 'booking_form_submit';
$form['event'] = array(
'#type' => 'select',
'#title' => t("Find tickets for"),
'#options' => $event_options,
$form['date'] = array(
'#type' => 'date_popup',
'#title' => t('on'),
'#discription' => '',
'#date_format' => 'd/m/y',
'#date_label_position' => 'within',
'#date_increment' => 15,

Safe defaults for file field allowed extensions?

Not a support request, just a thought for a design change.

For the file field you have to specify what file types are allowed to be uploaded to block potentially dangerous files. Im using this field for comments in the forum so Ive had to try and think of all the potential files users will want to use (jpg jepg bmp pdf doc txt, etc). Im sure there are some other harmless files types that ive missed out that one day a user may want to upload.

overriding user/*/edit adding more options to the displayed form

So far I have been able to locate the form user_profile_form by using

function mytheme_form_alter(&$form, &$form_state, $form_id) {
  $print = '
' . print_r($form, TRUE) . '

if (module_exists('devel')) {
dsm($form_id); // print form ID to messages
else {
drupal_set_message($form_id); // print form ID to messages
if (module_exists('devel')) {
dsm($form); // pretty print array using Krumo to messages
else {
drupal_set_message($print); // print array to messages

from the comments on http://api.drupal.org/api/drupal/modules%21system%21system.api.php/funct...

and using

function mytheme_form_user_profile_form_alter(&$form, &$form_state, $form_id){
  $form['picture']['picture_delete']['#description'] = 'Hello World' ;
  $form['picture']['picture_profile_invisible'] = array(
    '#type' => 'checkbox',
    '#title' => t('Invisible picture'),
    '#access' => !empty($account->picture->fid),
    '#description' => t('Check this box to make picture invisible.'),


Availability Calendar

Forgive this Drupal infant newbie - this may not be the correct forum and is something that has probably been asked umpteen times before (though I couldn't find it when I searched the forums) - Is there a manual (documentation?) to help with setup, configuration, and use of 'availability calendar'? I am struggling to find how to configure and customise it.


Subscribe with RSS Subscribe to RSS - Drupal 7.x