function shout_load in Heartbeat 6.4
Load a shout
Parameters
Integer $shout_id The Id of the shout message:
Return value
Object $shout A shout record from the database
2 calls to shout_load()
- rules_data_type_shout::load in modules/
shouts/ shouts.rules.inc - Loads the data identified with an identifier as returned by get_identifier(). Just return the data or FALSE if loading the data failed.
- shouts_shout_form_submit in modules/
shouts/ shouts.module - User submitted the shoutform, save the shout.
File
- modules/
shouts/ shouts.module, line 327 - Gives the possibility to the user to shout a message.
Code
function shout_load($shout_id) {
return db_fetch_object(db_query("SELECT * FROM {shouts} WHERE shout_id = %d", $shout_id));
}