function simple_form($form_state) {
$form['item'] = array('#type' => 'hidden', '#value' => 'some_value');
$form['#action'] = 'http://external-website.com/';
$form['submit'] = array(
'#type' => 'submit',
);
return $form;
}
Simple Drupal form, gets called with drupal_get_form(simple_form).
Unfortunately, it is really easy ...
I want to disable or hide edit link for specific role on node view page.
...
I'm having trouble understanding the scope of 'this' in this scenario. I'm able to call each one of these functions like: this.startTracking(); from within the time tracker switch object. However, when I try to execute the code: Drupal.timeTracker.prototype.stopTracking(); It loses all scope of variables and my GET request becomes undefi...
Hi, is there some easy way to force drupal into showing a block ABOVE the main content for a page?
I have seen some examples that does this, but it involves some hacking into the theme to create a new region above the content. No simpler way in drupal 6?
Could the Panels module help with this?
Big thank you for help with this.
...
Hello everybody,
I have to create a simple company blog within drupal-6. That means there should be only one single blog each user can post into.
What i have done so far is to create a custom content Type (blog) and a view that displays teasers of the recent blog entries with links to the full blog post.
Now i have to create a Tag-Clo...
I have made a sub theme to Acquia Marina and would like to change the default setting on the block configuration page from none to Blue rounded title background with white text. Any guidance would be appreciated.
...
I am trying to get the drupal linkedin integration module working. My configuration is:
Drupal 6.19
OAuth 6.x-2.02
linkedin module 6.x-1.x-dev
I have created my app on the linkedin developer network
I have added the correct keys to my linkedin module on my website
I have checked that all my URL's are correct
I have checked my permissi...
Hi,
In Drupal I have 3 content types( A, B, C ) see link. A and C contain a node reference to B.
Now I have a view which queries fields from A from an argument. I want to also show fields from C trough the relationschip with B, so:
A has a nodereference of ID:1, B has a Node ID:1, I want to show fields from C where nodereference of ID...
I have a content type, named "Task". It has a cck user reference field named "assigned_user".
I want to filter Tasks, which their assigned_user is current user.
how can I use "Token Filter" for this for my view? I installed this module but I didn't find anywhere for inserting tokens in view filter.
Does exist any better way?
...
I have an HTML template. What are the steps to convert it into a Drupal 6 theme?
...
I have a Drupal 6 multilanguage installation and I want to filter the nodes displayed by a view based on the language the user selected.
When adding "Node translation: Language" but I still get all entries. Any ideas what I missed?
...
It seems to be difficult to ajaxify a drupal multistep form(loading next step without page refresh).I googled it but I didn't find any solution.
Does anybody know how to do it?
...
How can I put li tags around every 2 results in drupal views?
I have this;
result1
result2
result3
result4
And I need this;
<li> result1 result2 </li>
<li> result3 result4 </li>
Thanks
...
Hi,
I'm working on a multilanguage site (IT(default)-EN-DE) and I want to have a language-independent "front page" with the site logo and a custom menu with three different links:
For example:
IT -> sitename.it/about
EN -> sitename.it/en/about
DE -> sitename.it/de/about
Other internal pages (history,territory,about...) use i18n modul...
I have a booking form that's built using options that are retrieved via a third party API and because of the need to have up to date information the results from the API can't be cached (at least not for very long).
The problem I'm having is I've noticed when the form is submitted Drupal is re-calling my _form function which is triggeri...
What's meaning of '#programmed' attribute of a form array in drupal?
I didn't find any documentation for it in drupal.org
...
I'd like to ask how to link to a drupal node?
I've created some page-content but don't know where they are and how to access them. I'm trying with navigation/menu etc., but still no luck.
...
I built a site using Drupal 6 recently that allows for users to submit information to the site owner in three different ways. They are:
Webform A: Quick Contact - this just collects name, email, phone and a message.
Webform B: Free PDF Book by Email Webform - this collects info similar to above, and then sends the user an email with a...
Hi, I have a drupal site, and i want to redirecting visitors to a different page based on the country.
I have this code:
require_once "Net/GeoIP.php";
$geoip = Net_GeoIP::getInstance("Net/GeoIP.dat");
try {
$geocode = $geoip->lookupCountryCode($_SERVER['REMOTE_ADDR']);
} catch (Exception $e) {
$geocode = 'EN';
}
switch ($geocode...
hello Friends
My problem is not solve Please help me.
I am create image gallery follow this tutorial.
http://jamestombs.co.uk/2009-03-18/create-a-simple-image-gallery-in-drup...
i done all this but when i upload a file there is no image. when i see the fire bug i read the src and when i see there is no folder of lightbox and thumbnail...