pipes_configure_form

Definition

pipes_configure_form($pid = 0, $edit = NULL)
pipes/pipes.module, line 76

Description

FormsAPI for pipes configuration http://pipes.yahoo.com/pipes/pipe.info?_id=IBPs3VrP2xGkZDChJhOy0Q http://pipes.yahoo.com/pipes/pipe.run?_id=IBPs3VrP2xGkZDChJhOy0Q&location=augusta+ga&keywords=bagels&_render=json

Code

function pipes_configure_form($pid = 0, $edit = NULL) {
  $form['pipe']['name'] = array('#type' => 'textfield',
    '#title' => t('Name'),
    '#default_value' => $edit->name,
    '#maxlength' => 80,
    '#description' => t('The name of the Yahoo! Pipe'),
    '#required' => TRUE,
  ); 
    $form['pipe']['url'] = array('#type' => 'textfield',
    '#title' => t('URL'),
    '#default_value' => $edit->url,
    '#maxlength' => 255,
    '#description' => t('The URL to run the Yahoo! Pipe'),
    '#required' => TRUE,
  ); 
    $form['pipe']['path'] = array('#type' => 'textfield',
    '#title' => t('Path'),
    '#default_value' => $edit->path,   
        '#maxlength' => 80,
    '#description' => t('Drupal path used to access this Yahoo! Pipe.  The prefix "pipes/" will be added automatically.  No leading or trailing slash.  Values will be run through urlencode()'),
    '#required' => TRUE,
  ); 
  
    $form['add_feed']['pid'] = array('#type' => 'hidden', '#value' => $pid);
  $form['add_feed']['submit'] = array('#type' => 'submit', '#value' =>t('Save Pipe')); 
    return $form
  }