We can render a block in PHP as we discussed previously.
Drupal – Render a Block in PHP Code
This time, we want to render a view display by using the views_embed_view(). Continue reading Drupal – Render a View in PHP Code
We can render a block in PHP as we discussed previously.
Drupal – Render a Block in PHP Code
This time, we want to render a view display by using the views_embed_view(). Continue reading Drupal – Render a View in PHP Code
You can render a block in PHP as follow.
...
$block = (object) module_invoke('<module>', 'block', 'view', "<block id>");
print theme('block', $block);
...
We have talked about the Views Custom Field module previously. If you have no idea what is it for, you can take a look @ Drupal – Custom PHP code for Views Field.
Sometimes we may need to get a full node using Views Custom Field. For example, i want to get the number of images of a node. Continue reading Drupal – Sharing data across fields in the same row with Views Custom Field
The Views Custom Field module makes Views highly customizable. You create a HTML markup or PHP code snippet as a field which could retrieve and manipulate any data from the database. Continue reading Drupal – Custom PHP code for Views Field
Special characters in URL are encoded according to RFC 3986. You could get the encoded URL by rawurlencode(). Continue reading PHP – URL Encode and Decode
In PHP, we can use cURL library for generating SOAP request.
PHP – Send a SOAP Request by cURL
Except using the cURL library, we can also use the NuSOAP. The NuSOAP provides much more convenient way to create the SOAP request and it can be used in Drupal. The following example is base on the Blog post written be Eric London.
Executing a SOAP call from Drupal using nusoap Continue reading Drupal – Send SOAP Request by NuSOAP
We can use the PHP cURL library to generate simple HTTP POST request. The following example shows you how to create a simple SOAP request using cURL. Continue reading PHP – Send a SOAP Request by cURL
I found a very good post which demonstrate how to integrate dompdf in CodeIgniter.
CodeIgniter Wiki – PDF generation using dompdf Continue reading PHP – dompdf render() timeout problem
The dompdf is a PHP library which help you to convert HTML into a PDF file. Actually i haven’t tried to implement it by myself but recently, i followed an project which used the dompdf and there is a UTF-8 decoding issue for special character like an Apostrophe. Continue reading PHP – dompdf UTF-8 decode problem
I was working for a Drupal website which i wanted to increase its maximum file upload size. This value is determined by the php.ini configuration file.
Unfortunately, the server hosting does not provide the SSH access so i can’t edit the php.ini. Therefore i have to let Drupal override the php.ini settings. There is 2 ways for Drupal to override the php.ini settings. Continue reading Drupal – Override the php.ini