You are here

function sheetnode_text_import_form in Sheetnode 7

Same name and namespace in other branches
  1. 6 modules/sheetnode_text/sheetnode_text.module \sheetnode_text_import_form()
  2. 7.2 modules/sheetnode_text/sheetnode_text.module \sheetnode_text_import_form()

Callback for import form.

1 string reference to 'sheetnode_text_import_form'
sheetnode_text_menu in modules/sheetnode_text/sheetnode_text.module
Implementation of hook_menu().

File

modules/sheetnode_text/sheetnode_text.module, line 25
Module file for the sheetnode_text module. This extends sheetnodes to enable importing of text to sheetnodes.

Code

function sheetnode_text_import_form() {
  $form['title'] = array(
    '#type' => 'textfield',
    '#title' => t('Title'),
    '#description' => t('Spreadsheet title.'),
  );
  $form['text'] = array(
    '#type' => 'textarea',
    '#title' => t('Text'),
    '#description' => t('Text representation of table to import.'),
    '#required' => TRUE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit'),
  );
  return $form;
}