pipes_configure_form_validate

Definition

pipes_configure_form_validate($form_id, $form_values)
pipes/pipes.module, line 107

Description

FormsAPI validate for pipes_configure_form()

Code

function pipes_configure_form_validate($form_id, $form_values) {
  $str = "http://pipes.yahoo.com/pipes/pipe.run?_id=";
  if ($str != substr($form_values['url'], 0, 42)) {
    form_set_error('url', t('The URL must begin with %str.', array('%str' => $str)));
  }
}