You are here

function expire_rules_action_info in Cache Expiration 7.2

Same name and namespace in other branches
  1. 6 expire.rules.inc \expire_rules_action_info()
  2. 7 expire.rules.inc \expire_rules_action_info()

Implements hook_rules_action_info().

File

./expire.rules.inc, line 11
Integration with the Rules module.

Code

function expire_rules_action_info() {
  return array(
    'expire_rules_action_flush_url' => array(
      'label' => t('Clear URL(s) from the page cache.'),
      'group' => 'Expire',
      'parameter' => array(
        'urls' => array(
          'type' => 'text',
          'label' => t('Absolute URL or internal path of page to clear'),
          'description' => t('Enter one value in each line. Examples: http://example.com, http://example.com/node/1, taxonomy/term/10, user/7, <front>.'),
        ),
      ),
      'callbacks' => array(
        'validate' => 'expire_rules_action_flush_url_validation',
      ),
    ),
  );
}