Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function simplenews_statistics_node_insert($node) {
- if ($node->type == 'simplenews') {
- // Create corresponding record in {simplenews_statistics} table.
- $record = array(
- 'nid' => $node->nid,
- );
- drupal_write_record('simplenews_statistics', $record);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement