How to make two different pages for URLs 'site.com/mypage' and 'site.com/mypage/'?
I used page_example.module as example to write my module prints page with URL 'site.com/mypage'.
I registered function only for 'site.com/mypage':
$form['button2']['submit'] = array('#type' => 'button', '#value' => t('Back') );
$form['button2']['#action'] = url('user/register'); //change this to the link location
Hi, i have a script in one of my blocks that i assign a country pulled from a geoip site to $visitor_country_name. The block does what its suppose to do and displays the right thing for that country.
However.. when i try and use $visitor_country_name in another one of my blocks it isnt assigned to anything. Is there a way to make variables global in drupal? so i can call $visitor_country_name anywhere anytime?
Ok well i have looked at all the modules i could find and none of them appear to do what i need. I am looking for a way to manage the way files are handled when attached, i dont want everything to go into the "files" directory. What i would like is for a way to create subdirectories under the "files" directory for each taxonomy term, and then when someone creates a new node and attaches a file, that file will be moved or placed in the directory that the node is categoriezed under.