function rules_admin_check_token in Rules 6
Check to see if the token module is installed, and if not put up a message.
Only call this function if the user is already in a position for this to be useful.
1 call to rules_admin_check_token()
- rules_admin_form_overview in rules_admin/
rules_admin.rule_forms.inc - Lists the available rules.
File
- rules_admin/
rules_admin.rule_forms.inc, line 64
Code
function rules_admin_check_token() {
if (!variable_get('rules_hide_token_message', FALSE) && !module_exists('token')) {
drupal_set_message(t('If you install the token module from !href, token replacements will be supported. <a href="@hide">Hide this message.</a>', array(
'!href' => l('http://drupal.org/project/token', 'http://drupal.org/project/token'),
'@hide' => url('admin/rules/settings'),
)));
}
}