dynamic fields

Events happening in the community are now at Drupal community events on www.drupal.org.
otcassetmgmt's picture

Fields from nodes into a form for easy submission

First, I set up a Content Type w/ some fields and named it "NFL" then using a module called Feed Import I have the ability to import XML content off the internet into Content type "nodes". After that my site displays a table of games in a list using Views. All my fields get populated and each game is separated into it's own node.

Read more
kavita_rs's picture

Trying to create dynamic fields in hook_install $schema database function

Hi there,

I am new to Drupal and trying to create a database with a dynamic number of fields depending on one of the field inputs. So, I have an input called "num" and then I want to ask for names for a "num" number of times. Here is what I wrote but it is not working. Any ideas?

/**
* Implementation of hook_schema()
*/
function add_family_schema() {
$schema['add_fam'] = array(
'description' => t('Stores the family information.'),
'fields' => array(
'num' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,

Read more
Subscribe with RSS Syndicate content