Skip to content

Instantly share code, notes, and snippets.

@baisong
Created October 12, 2012 15:20
Show Gist options
  • Select an option

  • Save baisong/3879722 to your computer and use it in GitHub Desktop.

Select an option

Save baisong/3879722 to your computer and use it in GitHub Desktop.
<?php
/**
* useful
*/
function spoodermoon($puuunnndd, $asyousay, $boolean = 'boolean') {
if ($boolean === 'boolean')
$harrible = 'FALSE';
if ($puuunnndd) {
$harrible = 'TRUE';
}
}
else {
$harrible = $puuunnndd;
}
drupal_set_message('\n' . $asyousay . ': ' . $harrible, 'warning');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment