You are here

function node_hook_info in Drupal 6

Implementation of hook_hook_info().

File

modules/node/node.module, line 2515
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

Code

function node_hook_info() {
  return array(
    'node' => array(
      'nodeapi' => array(
        'presave' => array(
          'runs when' => t('When either saving a new post or updating an existing post'),
        ),
        'insert' => array(
          'runs when' => t('After saving a new post'),
        ),
        'update' => array(
          'runs when' => t('After saving an updated post'),
        ),
        'delete' => array(
          'runs when' => t('After deleting a post'),
        ),
        'view' => array(
          'runs when' => t('When content is viewed by an authenticated user'),
        ),
      ),
    ),
  );
}