Using Drupal 7 with CIVI crm 5.xenter image description here

I'm doing some testing with this:

Hello World

'; ?>

Paste it in source code, but then it strips it out like this:

  <!--?php echo '<p-->
  <p>Hello World</p>

With Drupal I can tweak things so this can work, but how do I do it with CIVI CRM or it is even possible?

1 Answer 1


I believe its not possible to add php code in CiviCRM text area or ckeditor fields. I guess for security reasons it doesn't allow you to add any code snippets. Alternate solution is to use hook to alter the content of the field by using tokens.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.