function fastly_rules_action_info in Fastly 7
Implements hook_rules_action_info().
File
- ./
fastly.rules.inc, line 11 - Integration with the Rules module.
Code
function fastly_rules_action_info() {
$actions = array();
$actions['fastly_rules_action_purge'] = array(
'label' => t('Purge the page.'),
'group' => t('Fastly'),
);
$actions['fastly_rules_action_purge_by_urls'] = array(
'label' => t('Purge by URL(s).'),
'group' => t('Fastly'),
'parameter' => array(
'urls' => array(
'type' => 'text',
'label' => t('Absolute URL or internal path of page to clear'),
'description' => t('Paste one or more URLs to purge. Each in new line. Examples: http://example.com, http://example.com/node/1, user/1, <front>.'),
),
),
);
return $actions;
}