HTML playground for drupal

Recently I had to build this. It’s a simple little app that uses the forms API. Think w3schools.com “try it yourself.”

function sg_games_menu(){

 

        $items[‘html-sandbox’] = array(

             ‘title’ => t(‘HTML sandbox’),

             ‘page callback’ => ‘sg_games_html’,

             ‘access arguments’ => array(‘access [...]

Continue Reading...

R integration with PHP

Recently, I needed to do some statistical tests on data from within a Drupal Module. Having found no PHP libraries suitable for the task, I decided to try and run code in R from within PHP. This post helped out a great deal.
As far as I can tell, the only way to do this is [...]

Continue Reading...

Drupal vs. WordPress

User interface:
Drupal’s user interface has a steeper learning curve than that of WordPress. Users of WordPress are mostly bloggers, so the interface emphasizes a small set of the things bloggers need to do most frequently, like writing new posts, editing/deleting old posts and viewing statistics. The dashboard aggregates these high-use panels as a default landing [...]

Continue Reading...