You are here

function ulogin_rules_action_info in uLogin (advanced version) 8

Same name and namespace in other branches
  1. 7 ulogin.rules.inc \ulogin_rules_action_info()

Implements hook_rules_action_info().

File

./ulogin.rules.inc, line 10
Functions for integrating the Rules module with uLogin.

Code

function ulogin_rules_action_info() {
  return array(
    'ulogin_url_managed_file' => array(
      'label' => t('Save remote file to managed file'),
      'group' => t('uLogin'),
      'parameter' => array(
        'url' => array(
          'label' => t('URL'),
          'type' => 'uri',
          'description' => t('URL to the remote file.'),
        ),
        'directory' => array(
          'label' => t('File directory'),
          'type' => 'text',
          'description' => t('File directory to save remote file to.'),
        ),
      ),
      'provides' => array(
        'file' => array(
          'label' => 'Managed file entity',
          'type' => 'file',
        ),
      ),
    ),
  );
}