function flagging_load in Flag 7.3
Loads a flagging entity.
Parameters
int $flagging_id: The 'flagging_id' database serial column.
bool $reset: Whether to reset the DrupalDefaultEntityController cache.
Return value
stdClass The entity object, or FALSE if it can't be found.
4 calls to flagging_load()
- FlagFlaggingCRUDTestCase::testFlaggingUpdate in tests/
flag.test - Test creation of a flagging entity with flagging_save().
- FlagHookInvocationsTestCase::testHookInvocation in tests/
flag.test - Test invocation of hooks and their data during flagging and unflagging.
- flag_flag::flag in includes/
flag/ flag_flag.inc - Flags, or unflags, an item.
- flag_flag::get_flagging in includes/
flag/ flag_flag.inc - Similar to is_flagged() excepts it returns the flagging entity.
File
- ./
flag.module, line 75 - The Flag module.
Code
function flagging_load($flagging_id, $reset = FALSE) {
// The flag machine name is loaded in by FlaggingController::buildQuery().
$result = entity_load('flagging', array(
$flagging_id,
), array(), $reset);
return reset($result);
}