def _get_var_map(id_, name, type_, category, ruleset, rulename, help):
    """
    Returns the variable substitution mapping.
    """
    return {'%id': id_, '%name': name, '%type': type_, '%category':
        category, '%ruleset': ruleset, '%rulename': rulename, '%help': help}
