function privatemsg_rules_data_type_tag::load in Privatemsg 6.2
Loads the data identified with an identifier as returned by get_identifier(). Just return the data or FALSE if loading the data failed.
Implement it, if your data type is identifiable.
Overrides rules_data_type::load
File
- privatemsg_rules/
privatemsg_rules.rules.inc, line 137 - Hooks and callback functions for rules.module integration.
Class
- privatemsg_rules_data_type_tag
- Defines the user data type.
Code
function load($tag_id) {
return db_fetch_object(db_query('SELECT * from {pm_tags} pmt WHERE pmt.tag_id = %d', $tag_id));
}