You are here

function ape_rules_action_info in Advanced Page Expiration 7

Implements hook_rules_action_info().

File

./ape.rules.inc, line 11
Rules integration for APE module.

Code

function ape_rules_action_info() {
  return array(
    'set_cache_header' => array(
      'label' => t('Set page cache expiration'),
      'group' => t('System'),
      'parameter' => array(
        'max_age' => array(
          'type' => 'integer',
          'label' => t('Expiration of cached page'),
          'description' => t('The maximum time an external cache can use an old version of a page, in seconds.'),
          'restriction' => 'input',
          'default value' => 1800,
        ),
      ),
      'base' => 'ape_cache_set',
      'access callback' => 'ape_rules_access',
    ),
  );
}