Tags » Drupal

Drupal Simple Ajax Example

https://www.drupal.org/docs/7/api/javascript-api/simple-drupal-ajax-load-with-jquery-and-delivery-callback

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;
 }
Drupal

Webform submission - Through Code

https://www.drupal.org/node/1731742

$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);
Drupal

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

Drupal

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):

magnet:?xt=urn:btih:A21379368C5F384D7304F3A9451B14755D37B273&dn=Ubuntu16.04LTE_DrupalPro_Php7_Solr6.3&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.publicbt.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.ccc.de%3a80%2fannounce

Virtual Machine Appliance prepared with… 313 more words

Solutions

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

Drupal

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).

Wordpress

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