Skip to content

Tag: drupal

Drupal 7 – How to edit a value stored in variable table

I have inherited a multi-site in Drupal 7. There is a page where the client needs to edit the title element but this page is not a content type, a block or a taxonomy item!? I have queried the db and found only one instance of the value which needs to be changed. It is stored in the Variable table.

Need a script File to clear Cache Tables in a Drupal Database

I need to take a dump of MySQL Database, i usaully do these manual steps do Perform dumping.     login to phpmyadmin     select database     select sql tab     paste these lines         TRUNCATE watchdog;         TRUNCATE cache; and         TRUNCATE cache_admin_menu; And click on OK to clean the cache. I need…

PHP Classes: Should I use 2 classes or 1?

I am currently trying to make a class that deals with a survey in PHP (Drupal). So far I have this: This is great, I can create a new instance of Survey, set the properties, and call save on it. However, I also want to be able to have methods that retrieve the results of these surveys from the DB

Can you Create your Own Hook in Drupal?

Is it possible to create your own hook in a Drupal module for other Drupal modules to consume? If not, is there a mechanism in Drupal for third party developers to provide hooks? If everything’s been a no so far, where in the core are the list of hooks implemented? As I understand things, Drupal modules…

dompdf and img tag, image wont show

Here is the HTML just before $dompdf->render() and $dompdf->output() are called: All other invoices display the image fine when viewing in the browser, or printing it, or emailing it as HTML. When I click ‘Generate PDF’ inside of our application, it renders the invoice in PDF, except the log…