Skip to content

Instantly share code, notes, and snippets.

@lipcpro
lipcpro / setlangcode.drush.inc
Last active August 29, 2015 14:03
drush command to list content types available and set the language code for a certain type
<?php
/**
* Implements hook_drush_command().
*/
function setlangcode_drush_command() {
$items = array();
// The 'setlangcode' command.
$items['setlangcode'] = array(
'description' => "Sets the language code for certain types of nodes.",