Skip to Content

Newsfeeds

Crop API

New Drupal Modules - 17 November 2014 - 7:21am

Provides basic API for image cropping. This module won't do much by itself. Users should pick one of UI modules that utilize this API.

Configuration

No functionality can be tested ATM. Module is still under heavy development.
Technical details

Initial discussion can be found on manual crop issue queue.

Categories: Drupal

Embrace the apocalypse: Why competitive endgames and server resets make sense

Social/Online Games - Gamasutra - 17 November 2014 - 5:47am

"When I was first confronted by the idea of a server-ending apocalyptic endgame, I was sad about losing all the stuff I worked so hard to build. But then I figured nothing lasts forever." ...

Categories: Game Theory & Design

Right of Publicity in Video Games - How You Can Legally Include a Celebrity in Your Game - by Stephen McArthur

Gamasutra.com Blogs - 17 November 2014 - 3:26am
As a lawyer in the video game industry, I explain here the numerous high-profile Right of Publicity lawsuits filed recently and the most common pitfalls that arise when a game developer wants to use a real person's likeness in their game.
Categories: Game Theory & Design

The East Coast Game Conference (Raleigh NC)(screencast) - by Lewis Pulsipher

Gamasutra.com Blogs - 17 November 2014 - 12:44am
The East Coast Game Conference (“The largest gathering of video game professionals on the East Coast”) occurs annually in April in Raleigh NC. This is a description of this year's conference.
Categories: Game Theory & Design

Fuzzy Thinking: The Joy of Dice

RPGNet - 17 November 2014 - 12:00am
Fuzzy mechanics.
Categories: Game Theory & Design

Drupal core announcements: Drupal core security release window on Wednesday, November 19

Planet Drupal - 16 November 2014 - 8:54pm
Start:  2014-11-19 (All day) America/New_York User group meeting Organizers:  David_Rothstein

The monthly security release window for Drupal 6 and Drupal 7 core will take place on Wednesday, November 19.

This does not mean that a Drupal core security release will necessarily take place on that date for either the Drupal 6 or Drupal 7 branches, only that you should prepare to look out for one (and be ready to update your Drupal sites in the event that the Drupal security team decides to make a release).

There will be no bug fix release on this date; the next window for a Drupal core bug fix release is Wednesday, December 3.

For more information on Drupal core release windows, see the documentation on release timing and security releases, and the discussion that led to this policy being implemented.

Categories: Drupal

Gizra.com: Behat - The Right Way

Planet Drupal - 16 November 2014 - 2:00pm

Behat is a wonderful tool for automatic testing. It allows you to write your user stories and scenarios in proper English, which is then parsed by Behat and transformed to a set of clicks or other operations that mimic a real user.

If you don't have automated tests on your project, I would argue that you're doing it wrong (I explain why on The Gizra Way presentation). Even having a single test is much better than none.

With that said, it's super easy to abuse Behat. We are developers and we think sort of like machines (not really, but you get my point). If you would like to test login to your site you could easily do

Given I visit "/user/login" # fill the username and password input fields, and click submit When I fill "username" with "foo" And I fill "password" with "bar" And I press "Login" Then I should get a "200" HTTP response

Your test will return green, but it could be improved:

Continue reading…

Categories: Drupal

Drupal Association News: Don't Miss the Blink Reaction Membership Discount

Planet Drupal - 14 November 2014 - 2:09pm

At the Drupal Association, we love our members and want to show it. That’s why we team up with some of the best Drupal companies around every month to offer our members spectacular discounts.

This month, we’re pleased to announce that  Drupal Association Members can receive 30% off Blink Institute training classes from Blink Reaction. Using the discount code here, Drupal Association members can access fantastic training from Blink, led by veteran Drupalists who are expert trainers. Note: this offer can not be combined with other promotional offers.

Blink Reaction is a premiere provider of enterprise Drupal services to Fortune 1000 companies throughout the US. Their Drupal Training program is designed to help individuals, Enterprise service providers and small business owners harness the power of Drupal.

The Blink Training program has taught beginner and advanced methods to hundreds of individuals and corporations. Blink is proud to offer free and nearly free training through Global Drupal Training Days and at Drupal Camps alongside their public and private training offerings.

Make sure you take advantage of this great opportunity while it lasts. Kudos to our friends over at Blink -- thanks for sharing the Drupal love!

Categories: Drupal

Webform UUID

New Drupal Modules - 14 November 2014 - 2:02pm

This project is a result of this thread: https://www.drupal.org/node/2076483

It is NOT the same as the Webform UUID Submission module which deals with submissions rather than the webform itself such as this module.

Categories: Drupal

Code Karate: Drupal 7 Imagefield Focus

Planet Drupal - 14 November 2014 - 1:31pm
Episode Number: 178

In this episode we look at the Imagefield Focus Module. This module adds another option to the image styles on a content type field. With this module you are able to specify a focus and crop area of your image. Once you have selected either or both of those areas the module then resizes and focuses on the certain area you specified.

Tags: DrupalFieldsDrupal 7Image HandlingDrupal PlanetUI/Design
Categories: Drupal

Feeds: Import.io

New Drupal Modules - 14 November 2014 - 12:31pm

Provides a Feeds Parser and Fetcher for import.io data sets.

Feeds: Import.io can be used for both one-off imports or a continued stream of data from import.io, a web data platform and web scraping tool.

Categories: Drupal

Bootstrap CKEditor

New Drupal Modules - 14 November 2014 - 10:46am
Categories: Drupal

Midwestern Mac, LLC: Creating a contact form programmatically in Drupal 8

Planet Drupal - 14 November 2014 - 10:24am

Drupal 8's expanded and broadly-used Entity API extends even to Contact Forms, and recently I needed to create a contact form programmatically as part of Honeypot's test suite. Normally, you can export a contact form as part of your site configuration, then when it's imported in a different site/environment, it will be set up simply and easily.

However, if you need to create a contact form programmatically (in code, dynamically), it's a rather simple affair:

First, use Drupal's ContactForm class at the top of the file so you can use the class in your code later:

Categories: Drupal

See how top F2P spenders are shaping our industry at GDC 2015

Social/Online Games - Gamasutra - 14 November 2014 - 9:42am

Kongregate cofounder and CEO Emily Greer returns to the Game Developers Conference in March to share insight into the personalities, play patterns and spending habits of top F2P game spenders. ...

Categories: Game Theory & Design

Drupal Association News: Happy Global Training Day!

Planet Drupal - 14 November 2014 - 9:39am

It's Global Training Day and we couldn't be more excited! All across the world, people are teaching and learning Drupal, and sharing that open source love.

Global Training Days happen once a quarter, and focus on one of two curriculums:

  • "Introduction to Drupal," a full day training on the basics of Drupal. Attendees will leave having successfully built a Drupal site. It is ideal for those interested in exploring Drupal as a career path.
  • "What is Drupal?" This half-day workshop will address the basics of Drupal, and will give an overview to those interested in evaluating or implementing Drupal.

Here are some of the highlights of today's Global Training Day tweets.

The first Global #Drupal Training Day Hungary is ON! @tanarurkerem and @kuszingjanos on the stage :) cc @DrupalAssoc pic.twitter.com/DGt1yvFuPg

— Zsófi M. (@zsofimajor) November 14, 2014

We are ready #drupalday!!! pic.twitter.com/ezIIl1aNHC

— Wellnet (@Wellnet) November 14, 2014

#DrupalCampMelbourne2014 Day 1 Group Photo in sunny Melbourne! pic.twitter.com/DgFh9Wcb7I

— Drupal Melbourne (@DrupalMelbourne) November 14, 2014

Where's Global Training Day happening? This map shows you where people are learning about Drupal all over the world.

Categories: Drupal

Paul Booker: How to create Blocks in Drupal 7

Planet Drupal - 14 November 2014 - 9:28am
// $Id$ /** * @file * Implements various blocks to improve pending content workflow. */ /** * Implements hook_block_info(). */ function approval_block_info() { $blocks['pending_comments'] = array( 'info' => t('Pending Comments'), 'status' => TRUE, 'region' => 'sidebar_first', 'weight' => 0, ); $blocks['unpublished_nodes'] = array( 'info' => t('Unpublished Nodes'), 'status' => TRUE, 'region' => 'sidebar_first', 'weight' => 0, ); return $blocks; } /** * Implements hook_block_configure(). */ function approval_block_configure($delta) { $form = array(); switch($delta) { case 'pending_comments': $form['pending_comment_count'] = array( '#type' => 'textfield', '#title' => t('Configure Number of Comments to Display'), '#size' => 6, '#description' => t('Enter the number of pending comments that will appear in the block.'), '#default_value' => variable_get('pending_comment_count', 5), ); break; case 'unpublished_nodes': $form['unpublished_node_count'] = array( '#type' => 'textfield', '#title' => t('Configure Number of Nodes to Display'), '#size' => 6, '#description' => t('Enter the number of unpublished nodes that will appear in the block.'), '#default_value' => variable_get('unpublished_node_count', 5), ); break; } return $form; } /** * Implements hook_block_save(). */ function approval_block_save($delta = '', $edit = array()) { switch($delta) { case 'pending_comments': variable_set('pending_comment_count', (int)$edit['pending_comment_count']); break; case 'unpublished_nodes': variable_set('unpublished_node_count', (int)$edit['unpublished_node_count']); break; } return; } /** * Implements hook_block_view(). */ function approval_block_view($delta = '') { switch ($delta) { case 'pending_comments': $block['subject'] = t('Pending Comments'); $block['content'] = approval_block_contents($delta); return $block; break; case 'unpublished_nodes': $block['subject'] = t('Unpublished Nodes'); $block['content'] = approval_block_contents($delta); return $block; break; } } /** * A module-defined block content function. */ function approval_block_contents($delta) { switch ($delta) { case 'pending_comments': if (user_access('administer comments')) { $nbr_comments = variable_get('pending_comment_count'); $result = db_query("SELECT cid, subject FROM {comment} WHERE status = 0 limit $nbr_comments"); $items = array(); foreach ($result as $row) { $items[] = l($row->subject, 'comment/'.$row->cid.'/edit'); } return array('#markup' => theme('item_list', array('items' => $items))); } break; case 'unpublished_nodes': if (user_access('administer nodes')) { $nbr_nodes = variable_get('unpublished_node_count'); $result = db_query("SELECT nid, title FROM {node} WHERE status = 0 limit $nbr_nodes"); $items = array(); foreach ($result as $row) { $items[] = l($row->title, 'node/'.$row->nid.'/edit'); } return array('#markup' => theme('item_list', array('items' => $items))); } break; } } Tags: URL: paulbooker / gist:5420976
Categories: Drupal

Bootstrap Frontend Experience

New Drupal Modules - 14 November 2014 - 8:35am
Categories: Drupal

Paul Booker: How to create an autocomplete form element in Drupal 7

Planet Drupal - 14 November 2014 - 8:22am
<?php function demo_menu() { $items['demo-autocomplete-test'] = array( 'title' => 'Test autocomplete', 'page callback' => 'drupal_get_form', 'page arguments' => array('demo_form'), 'access arguments' => array('view published content'), 'type' => MENU_NORMAL_ITEM, ); $items['demo-autocomplete-engine'] = array( 'page callback' => 'demo_autocomplete', 'access arguments' => array('view published content'), 'type' => MENU_CALLBACK, ); return $items; } function demo_form($form, &$form_state) { $form = array(); $form['colors'] = array( '#title' => t('Colors'), '#type' => 'textfield', '#maxlength' => 60, '#autocomplete_path' => 'demo-autocomplete-engine', ); $form['submit'] = array( '#type' => 'submit', '#value' => 'Submit', ); return $form; } function demo_autocomplete($text) { $results = array(); $query = db_select('colors', 'c'); $query ->condition('c.color', '%' . db_like($text) . '%', 'LIKE') ->fields('c', array('color')) ->orderBy('color', 'ASC'); $colors = $query->execute(); foreach ($colors as $row) { $results[$row->color] = check_plain($row->color); } drupal_json_output($results); } Tags:
Categories: Drupal

MariqueCalcus: Prius is in Beta like Drupal :-)

Planet Drupal - 14 November 2014 - 8:05am

Alongside the long awaited Drupal 8 Beta release, we have also updated our first Drupal 8 theme. We haven't include many new features but we have tried to clean up its code and have improved our starter kit. Anyway, let's dig into the latest new features we have discovered with the first Beta releases of Drupal 8. Feel free to check out the code on drupal.org or read our dedicated blog entry if you want to find out more about our first Drupal 8 theme. If you can wait to see the result, take a look at our online demo.

Read More...
Categories: Drupal

Revisionism

New Drupal Modules - 14 November 2014 - 7:48am

Revisionism helps to manipulate entity revisions, particularly useful for modules that would like new revisions to be created without being immediately published.

Categories: Drupal
Syndicate content


Google+
about seo