I'm trying to add several fields to the core blog.module -- for image id handling, and a few other things I need for our site.
In my own node type modules, I have been using hook_insert, hook_delete, hook_update, hook_load - to manage updates to a seperate table. But when I try to do the same thing within the blog.module, these hooks don't get called. Wondering if there is another way for handling a core module?
Modified section is below... the form seems to work fine. I have a node_blog table with the new fields in it.
Thanks
-Greg
<?php
/**
* Implementation of hook_form().
*/
function blog_form(&$node) {
global $nid;
$form['blogentry'] = array('#type' => 'fieldset', '#collapsible' => TRUE, '#collapsed' => TRUE, '#weight' => -5, '#title' => t('Blog Entry'));
$form['blogentry']['title'] = array('#type' => 'textfield', '#title' => t('Title'), '#required' => TRUE, '#default_value' => $node->title, '#weight' => -5);
$form['blogentry']['body_filter']['body'] = array('#type' => 'textarea', '#title' => t('Body'), '#default_value' => $node->body, '#rows' => 20, '#required' => TRUE);
//$form['body_filter']['filter'] = filter_form($node->format);
$form['blogimage'] = array('#type' => 'fieldset', '#collapsible' => TRUE, '#collapsed' => TRUE, '#weight' => -4, '#title' => t('Blog Post Images'));
$form['blogimage']['imgId'] = array('#type' => 'textfield', '#title' => t('Full Size Image Id'), '#default_value' => $node->imgId, '#size' => 10, '#description' =>t('Enter the Image ID number for full size image from Gallery.'));