Is it possible to add PHP code to drupal content(eg. Basic page)? I have enabled Context & Context PHP Module. Can any one please tell me if it is possible Thanks
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it’s possible. You should enable “PHP filter” module (it’s a core module so it’s already installed and available on your module list admin/modules) and then choose “PHP code” as your text format while creating a new node (php code in your node also should be surrounded by
<?php ?>tags to be executed).