I tried searching, but the forum search is pretty weak. I need to update a field from what I am updating in the settings menu. The following is from the gallery module:
$form['gallery_drupal_dir'] = array(
'#type' => 'textfield',
'#title' => t('Location of Drupal'),
'#default_value' => variable_get('gallery_drupal_dir', '/'),
'#description' => t('Path to your drupal directory, relative to the root of your website. Please include a trailing slash ("/").'),
);
My first question is, where is this explained? I am reading the form generation handbook and I can't seem to completely figure this out. I am reading the drupal head version.
Here are the questions I have:
- Where do you tie what you are updating to a field in a database table? I can't seem to find that link. Basically, I update the value, how does drupal know which field in the db to update with that value?
- What does the section in brackets do ['galler_drupal_dir']
- In the variable get command, is the gallery_drupal_dir a variable or a field? How does it work.
Thanks for your help
Norm