; $Id: README_API.txt,v 1.1.2.4 2008/01/04 15:41:51 arthuregg Exp $

This covers some aspects of SignIt's Hooks

------------------------------------------
hook_signit_user($op, $data, $config)

This is used to modifiy how data is collected and stored on SignIts. 
 $op = 
   'create' $signit config array 
          Shown on the node edit page (create & edit) returns a form
 
   'display' $signit config array 
          Shown when signatures are being collected, probably matches 'create'
   
   'save' $form_values, $signit config array
     Used to store additional data, can return additional data for the $data option. 
     This can also be used to fire actions when a signit is signed
   
   'view' 
          Shows on the petition signature display. Return an array(array('#title'=> $title, '#value' => $value))      
   
   'send'
          Data to send when a signit it gets sent
   
   'admin'
          Allows for default configurations of the form.
   
------------------------------------------
hook_signit_targets($op, $data, $config)
This is used to modify how targets are selected and sent on SignIts

$op =
  'create' Shown on the node edit page (create & edit) returns a form
  
  'send' Called when SignIt wants to send something
  
  
------------------------------------------
hook_signit_sign($op, $data, $config)
This is called when a SignIt is signed by a user

$op =
  'validate' 
      Called to validate signature data. form_set_error() if false, else do nothing
  
  'sign' Called when signature is being saved
      Called to perform actions when a SignIt is signed. Modules are responsible for saving their data an other actions that take place.
  