Skip to content
Snippets Groups Projects
Commit 724fcaa4 authored by Kevin Kaland's avatar Kevin Kaland
Browse files

Clean up references to CCK.

Also removed an unused public variable (we have a static function
somewhere doing the job).
parent 7ff44408
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
*/
namespace Drupal\fillpdf\Form;
use Drupal\Core\Form\FormBase;
/**
......@@ -13,18 +14,12 @@ use Drupal\Core\Form\FormBase;
* @package Drupal\fillpdf\Form
*/
abstract class FillPdfAdminFormBase extends FormBase {
public $REPLACEMENTS_DESCRIPTION;
/**
* FillPdfAdminFormBase constructor.
*/
public function __construct() {
$this->REPLACEMENTS_DESCRIPTION = $this->t("<p>Tokens, such as those from CCK, sometimes output values that need additional
processing prior to being sent to the PDF. A common example is when a key within a CCK <em>Allowed values</em>
configuration does not match the field name or option value in the PDF that you would like to be selected but you
do not want to change the <em>Allowed values</em> key.</p><p>This field will replace any matching values with the
replacements you specify. Specify <strong>one replacement per line</strong> in the format
<em>original value|replacement value</em>. For example, <em>yes|Y</em> will fill the PDF with
<strong><em>Y</em></strong> anywhere that <strong><em>yes</em></strong> would have originally
been used. <p>Note that omitting the <em>replacement value</em> will replace <em>original value</em>
with a blank, essentially erasing it.</p>");
}
}
......@@ -56,15 +56,15 @@ class FillPdfAdminFormHelper implements FillPdfAdminFormHelperInterface {
}
public static function getReplacementsDescription() {
return t('<p>Tokens, such as those from CCK, sometimes output values that need additional
processing prior to being sent to the PDF. A common example is when a key within a CCK <em>Allowed values</em>
return t("<p>Tokens, such as those from fields, sometimes output values that need additional
processing prior to being sent to the PDF. A common example is when a key within a field's <em>Allowed values</em>
configuration does not match the field name or option value in the PDF that you would like to be selected but you
do not want to change the <em>Allowed values</em> key.</p><p>This field will replace any matching values with the
replacements you specify. Specify <strong>one replacement per line</strong> in the format
<em>original value|replacement value</em>. For example, <em>yes|Y</em> will fill the PDF with
<strong><em>Y</em></strong> anywhere that <strong><em>yes</em></strong> would have originally
been used. <p>Note that omitting the <em>replacement value</em> will replace <em>original value</em>
with a blank, essentially erasing it.</p>');
with a blank, essentially erasing it.</p>");
}
public function getPdftkPath() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment