Default value never gets the right value assigned.

function feeds_tamper_sprintf_form($importer, $element_key, $settings) {
  $form = array();
  $form['format'] = array(
    '#type' => 'textfield',
    '#title' => t('Format'),
    '#default_value' => '%s',
    '#size' => 60,
    '#maxlength' => 128,
    '#required' => FALSE,
    '#description' => t('See the <a href="http://www.php.net/manual/en/function.sprintf.php">sprintf</a> documentation for more details.'),
  );
  return $form;
}
CommentFileSizeAuthor
#2 sprintf_default_value-2573219-1.patch501 bytesram4nd

Comments

ram4nd created an issue. See original summary.

ram4nd’s picture

Status: Active » Needs review
StatusFileSize
new501 bytes
honza pobořil’s picture

Status: Needs review » Reviewed & tested by the community

Working for me.

steva1982’s picture

Working for me, too.

  • MegaChriz committed 842ed57 on 7.x-1.x authored by ram4nd
    Issue #2573219 by ram4nd, Bobík, steva1982: Fixed default_value in...
megachriz’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the patch! Committed #2.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.