Tags » Drupal

Drupal: Use custom template file for any form

Introduction

Drupal 7 has well known template file concept. Template (.tpl) file is used to display the data and has minimal or no logic at all. 360 more words

PHP

Can't Install Drupal Modules on IIS: modules is outside of the root

Problem

When attempting to install a module in Drupal via the admin tool / upload manager, I get the following error:

Installation failed! See the log below for more information.

206 more words
IIS

CMSmap - Scanner to detect security flaws of the most popular CMSs (WordPress, Joomla, Drupal and etc)

A somewhat worth noting, issue is the protection of a website.

Today, there are lots of CMS to create our life, a little easier for everyone.  317 more words

Web Development

Wordpress is a CMS

Take Our Poll

Vivamus fermentum semper porta. Nunc diam velit, adipiscing ut tristique vitae, sagittis vel odio. Maecenas convallis ullamcorper ultricies. Curabitur ornare, ligula semper consectetur sagittis, nisi diam iaculis velit, id fringilla sem nunc vel mi. 110 more words

Wordpress

The Host with the Most

MMMporium is in the process of moving from a WordPress.com website to one hosted at Smart Host that will allow us to continue using the WordPress system or switch to another content management system such as Drupal. 135 more words

MMMporium

Execute Batch Process based on cron run

The batch api is primary design to work with forms and it depends what is the purpose of your use, but you can create a function that mimic form submission, and then you can use batch together with cron, assume you have function that will be triggered by a rule on cron run, so this function is _mymodule_batch(): 96 more words

Drupal

DB Query with IN condition

$nids = array(100, 101);
$records = db_query("SELECT nid, title FROM node WHERE nid IN (:nids)", array(':nids' => $nids))->fetchAll();

Source

https://api.drupal.org/api/drupal/includes%21database%21database.inc/function/db_query/7

Drupal