function rules_php_action_info

Implements hook_rules_action_info() on behalf of the php module.

Related topics

File

modules/php.rules.inc, line 50

Code

function rules_php_action_info() {
    return array(
        'php_eval' => array(
            'label' => t('Execute custom PHP code'),
            'group' => t('PHP'),
            'parameter' => array(
                'code' => array(
                    'restriction' => 'input',
                    'type' => 'text',
                    'label' => t('PHP code'),
                    'description' => t('Enter PHP code without <?php ?> delimiters.'),
                ),
            ),
            'base' => 'rules_execute_php_eval',
            'access callback' => 'rules_php_integration_access',
        ),
    );
}