Hello,
I am new to Drupal and have started developing an e-commerce site with Drupal. I have a huge problem with an implementation of hook_rules_action_info where the callback function is not called!
I am desperate and after searching the forums unsuccessfully, I decided to post my question here:
Basically, I have the following implementation in my module:
function MYMODULE_rules_action_info()
{
$actions = array();
// Assign a coupon to a user.
$actions['MYMODULE_assign'] = array(
'label' => t('Assign a coupon to referring user.'),
'group' => t('Coupon'),
'provides' => array('coupon' => array('type' => 'uc_coupon','label' => t('Coupon'),),
),
'parameter' => array(
'cid' => array(
'type' => 'integer',
'label' => t('Coupon'),
'description' => t('Select the base coupon to be assigned.
The new user will be added to the user restrictions for the selected coupon,
and the code will be sent to them by email.'),
'options list' => 'MYMODULE_cid_options',
'restriction' => 'input',
),
),
);
// mail a newsletter
$actions['MYMODULE_mail_newsletter'] = array(
'label' => t('Sends a newsletter'),
'group' => t('MYMODULE'),
'parameter' => array(
'newsletter_id' => array(