Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function universal_document_creator_rules_action_info() {
- return array(
- 'udc_createdoc' => array(
- 'label' => t('Convert Docucument with UDC'),
- 'group' => t('Custom'),
- 'parameter' => array(
- 'templateid' => array(
- 'type' => 'integer',
- 'label' => t('Template ID'),
- 'description' => t('Enter the ID of the template'),
- ),
- 'accountmanagersid' => array(
- 'type' => 'integer',
- 'label' => t('The number of the account manager'),
- 'description' => t('The node ID of the number of the account manager.'),
- ),
- 'filetypeid' => array(
- 'type' => 'integer',
- 'label' => t('File type ID'),
- 'description' => t('The filetype ID. 1 = Word, 2 is PDF'),
- ),
- 'cvnodeid' => array(
- 'type' => 'integer',
- 'label' => t('CV node ID'),
- 'description' => t('The node ID from the CV'),
- ),
- ),
- 'provides' => array(
- 'filename' => array(
- 'type' => 'text',
- 'label' => t('File name'),
- ),
- ),
- ),
- );
- }
- <?php
- // This callback creates the document using the parameters provided through rules' UI
- function udc_createdoc($templateid, $accountmanagersid, $filetypeid, $cvnodeid) {
- $FileToSave == "foo";
- drupal_set_message(t('test why is this not on my screen'), 'error');
- return $FileToSave;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement