You are here

function sheetnode_html_import_form in Sheetnode 7

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

Callback for import form.

1 string reference to 'sheetnode_html_import_form'
sheetnode_html_menu in modules/sheetnode_html/sheetnode_html.module
Implementation of hook_menu().

File

modules/sheetnode_html/sheetnode_html.module, line 25
Module file for the sheetnode_html module. This extends sheetnodes to enable inmporting of html to sheetnodes.

Code

function sheetnode_html_import_form() {
  $form['url'] = array(
    '#type' => 'textfield',
    '#title' => t('URL'),
    '#required' => TRUE,
    '#description' => t('URL of the page to parse.'),
  );
  $form['querypath'] = array(
    '#type' => 'textfield',
    '#title' => t('QueryPath'),
    '#description' => t('<a href="@qp">QueryPath expression</a> to find one or more tables to import into a single spreadsheet. For example: <code>table#flat-rates-table</code>.', array(
      '@qp' => 'http://querypath.org/',
    )),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit'),
  );
  return $form;
}