Tags » Drupal

Drupal Simple Ajax Example


May be rewrite your call back function in the above example in following manner.

function myModule_ajax_callback($page_callback_result) {
   // Do what ever you want  Save data / delete 
  $content = 'test - content ';
  print $content;

Webform submission - Through Code


$node = node_load($nid);
  global $user;
  $data = array(
    1 => array('value' => array($first)),
    2 => array('value' => array($last)),
    3 => array('value' => array($address1)),
    4 => array('value' => array($address2)),
    5 => array('value' => array($city)),
    6 => array('value' => array($state)),
    7 => array('value' => array($zip)),
    8 => array('value' => array($country)),

  $submission = (object) array(
    'nid' => $nid,
    'uid' => $user->uid,
    'submitted' => REQUEST_TIME,
    'remote_addr' => ip_address(),
    'is_draft' => FALSE,
    'data' => $data,

  module_load_include('inc', 'webform', 'includes/webform.submissions');
  webform_submission_insert($node, $submission);
  webform_submission_send_mail($node, $submission);

Configure Gmail on Drupal 8 and Windows

In order to configure gmail for Drupal 8 on Windows the best way is to install the SMTP Authentication Module from here (I have installed by downloading the zip of the latest dev version). 90 more words


DrupalPro for Ubuntu 16.04 LTE

Created on 2017-01-18.  Configuration is similar to the old Drupalpro, with quickstart scripts. Magent Link (not allowed on wp.com):


Virtual Machine Appliance prepared with… 313 more words


Drupal As Lego Blocks

Drupal is a web application. But you don’t have to be a programmer to be able to use it or build up sophisticated functions. That’s the brilliant idea behind Drupal. 33 more words


Post #1 2017-1-12

Studying web-dev online, with courses from Lynda.com.  Here’s a screenshot of my course playlist. As you can see, I am learning more advanced stuff in WordPress, as well as an intro to Drupal (out of curiosity).


How the beta came to life

We began this blog not quite 2 years ago – in April 2015, to be exact – though the project had been going prior to this. 415 more words

User Testing