Blarchive

Add images to Drupal from your mobile device

iPhone camera

You can add images to Drupal, but mobile devices don't allow you to upload any photos to image fields. This is something that sort of irked me from time to time in the past, but recently came up for a website project, so I thought it would be good to see if it could be worked around.

HTML5 allows for this, but sadly that's mostly a no go with Drupal 7 at the moment. However, it turns out the fix is nice and easy via the HTML Media Capture method. Add the following snippet of jQuery, so it runs when pages load:

Sponsorship Success Metric

Hissy fit

Just after DrupalCon Sydney at the start of February of this year, I overheard some people wondering why they should sponsor a DrupalCon. Considering the people who attend, there's not a lot of product selling you can do if you're a Drupal shop and unless you're looking to hire delegates as new staff, there's not a lot of direct benefit from having a sponsor booth or table.

Obviously, helping to fund a DrupalCon and the Drupal Association via a sponsorship are good things to be doing for the community, but the payoff isn't necessarily immediately apparent. However, there definitely is one. There just hasn't been a metric for it, let alone a testable metric.

Announcing the Drupal 8 Compatibility API

Drupal Compatibility

For some time now I've thought that I don't like the direction Drupal 8 development is heading in. The code base is getting larger and larger, the code is getting slower and slower and the mix of plugins and annotations that replaces hooks makes the development experience far less consistent.

On top of that, the PSR-0 "standard" means humans have to now write code that is more convenient to parse for computers than for other humans.