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

drupal_execute and form redirection

Hi,

I have a module that defines 2 new node types. I am able to insert, delete, update, view etc these nodes just fine. Part of this module is a drupal menu that creates many of these nodes programmatically. It gets information from the filesystem and then creates nodes ( of my new type) with drupal_execute and outputs the results to the webpage.

Creating a Module

How do you create a module? I'm relatively new to Drupal, but I'm PHP savvy, so I'm confident that I can do it. I just can't figure out how to create my own module. Any help would be awesome.

TLC module seems not longer mantained. How can i do?

I made a new version of TLC (http://drupal.org/project/tlc), more complete and configurable. Unfortunately TLC mantainer does not longer update his project. Should i create a new project (i think i will include support for Andrea Micheloni, React, http://miche.netsons.org/projects/react/) or wait the tlc maintainer response?

How can I tell if a view is empty when I call a view using views_build_view( ) ?

Just a quick question, using this code:
$view_name = 'ds7319_or'; //name of view
$limit = 3; // number of returns
$view_args = array();
$view = views_get_view($view_name);
print '

tying simple javascript to a form element

Information on this was hard to come by, so here is the method in the hope that it helps.

Background:we needed to provide a drop down of default values and also provide a text box to the user
if no suitable option existed in the drop down. Since the text field contained the data to store in the database, I wanted to auto-populate the text field based on the 'onchange' event in the select box.

trivial in straight html land, but it was a bit of a poser in with drupal forms--I did not immediately see how to associate javascript with a form element.

Pages

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