function sheetnode_import_template in Sheetnode 5
Same name and namespace in other branches
- 6 sheetnode.module \sheetnode_import_template()
- 7.2 sheetnode.module \sheetnode_import_template()
- 7 sheetnode.module \sheetnode_import_template()
1 string reference to 'sheetnode_import_template'
- sheetnode_menu in ./
sheetnode.module - Implementation of hook_menu().
File
- ./
sheetnode.module, line 303
Code
function sheetnode_import_template() {
$options[0] = t('- Please choose a template -');
$result = db_query("SELECT tid, name FROM {sheetnode_template}");
while ($template = db_fetch_object($result)) {
$options[$template->tid] = $template->name;
}
$form['template'] = array(
'#type' => 'select',
'#title' => t('Template'),
'#description' => t('Please select the template to load into your new sheetnode.'),
'#options' => $options,
'#default_value' => 0,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
);
return $form;
}