JacksonRiver/springboard_modules — pull request #105 by benclark (2012-08-01 00:30:32+00:00)
Title: Provides an alter hook in secure_prepopulate

Provides an alter hook in secure_prepopulate for changing the $fields array after it has been decrypted in hook_init().

Hook usage:

```php
/**
* Implements hook_secure_prepopulate_data_alter().
*/
function hook_secure_prepopulate_data_alter(&$data, $nid) {
if ($node = node_load($nid)) {
// Add to the prepopulated data.
$data['node_created'] = $node->created;
}
// Remove data, too.
unset($data['address_line_2']);
}
```