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

save a value and show other value on Select box

How can i save a value and show other value on Select box.
I have a query and save the result on 2 array's. I try to save a value (array1[position]) and show other on select box.
On php its very easy but on drupal i can't do.

I apreciate some help!!

Thk's

Best method for node listing

Hi,

I would like to get a list of nodes that meet various different criteria e.g. all nodes of one content type. Would I be best manually querying the database or is there an API function which will return an array of node objects.

Thankyou for all the great help so far.

Filtering embeded tabbed views

i have embedded a bunch of views into a node with tabs. now i want to filter those embedded views using a form. i am attempting to create a form that will be added above the tabs and will filter the views.

all of this code is placed in the input form for the body of the node. any help would be appreciated...

thanks...

ps - with the below code nothing is being rendered. if i remove the bad piece at the top the views are rendered correctly...

<?php
/* Start - code that is not working... */
function filter_form() {
$form['view-location-city'] = array(
'#type' => 'textfield',
'#title' => t('City'),
'#size' => 60,
'#default_value' => 'Paris',
'#maxlength' => 64,
'#description' => t('Filter by city),
);

$form['view-location-submit'] = array(
'#type' => 'submit',
'#value' => t('Filter'),
);

$output = drupal_get_form('filter_form', $form);
return $output;
}
/* End - code that is not working... */

/* All the below code is working beautifully */
/* ---------------------------------------------------------- */
$form = array();

$view1 = views_get_view('accommodation_view');
$view2 = views_get_view('article_view');
$view3 = views_get_view('attraction_view');
$view4 = views_get_view('event_view');
$view5 = views_get_view('nightlife_view');

Here's an idea: a form construction kit?

One of the really powerful things about drupal is cck and the way it lets you create new node types or modify existing node types. Wouldn't it be great if there was a similarly powerful tool that let you construct and edit forms? I know the webforms module kind-of does this, but the tool I'm imagining would do much, much more: it would let you edit existing forms such as the user registration form, easily create multi-step forms, or create dynamic forms.

node_load() for aggregator content? aggregator_load()?

Hello everyone.

I've finally started developing my own modules, and finally got stuck on something that I thought I'd ask the community about.

I need to get the content from items in the news aggregator in a similar fashion that you can get node information from nodes using the node_load($nid) function. Basically, all the stuff for each item listed on /aggregator.

Does anyone know if that is possible?

Video module problem

Hi,
I'm currently setting up a new drupal based news site. One of the many features which were using is to provide users with the ability to upload video content to the site. We decided to use the video module (http://drupal.org/project/video) for this.

were having a slight problem with using the auto convert and auto thumbnail features.
When a video is uploaded the file does not play back or for that matter appear on the site, this problem started to appear after the auto convert was enabled. I would really like to use the auto convert, autosizing/time settings as it would make the site so much easier to work with for the end users who may not be as computer literate as you and I.
I have a feeling that it may be a problem with the cron settings, my cron job looks like this at the moment:

/usr/bin/php -q http://numnews.com/video_scheduler.php

Is there something obviously wrong?

I have also enabled the auto thumb nailing option, at present this does not work as no thumbnails are generated.

I think these two problems may be connected as upon uploading a video the site returns the following errors:

warning: Illegal offset type in /home/numnews/public_html/includes/form.inc on line 593.
warning: Illegal offset type in /home/numnews/public_html/includes/form.inc on line 594.

Pages

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