webmaster@1: t('Maps trigger to hook and operation assignments from trigger.module.'), webmaster@1: 'fields' => array( webmaster@1: 'hook' => array( webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 32, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => '', webmaster@1: 'description' => t('Primary Key: The name of the internal Drupal hook upon which an action is firing; for example, nodeapi.'), webmaster@1: ), webmaster@1: 'op' => array( webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 32, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => '', webmaster@1: 'description' => t('Primary Key: The specific operation of the hook upon which an action is firing: for example, presave.'), webmaster@1: ), webmaster@1: 'aid' => array( webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 255, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => '', webmaster@1: 'description' => t("Primary Key: Action's {actions}.aid."), webmaster@1: ), webmaster@1: 'weight' => array( webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0, webmaster@1: 'description' => t('The weight of the trigger assignment in relation to other triggers.'), webmaster@1: ), webmaster@1: ), webmaster@1: 'primary key' => array('hook', 'op', 'aid'), webmaster@1: ); webmaster@1: return $schema; webmaster@1: } webmaster@1: webmaster@1: