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.
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.
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?
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 '
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.