function og_panels_get_one_by_display in Organic groups 6
Same name and namespace in other branches
- 5.8 og_panels.module \og_panels_get_one_by_display()
- 5 og_panels.module \og_panels_get_one_by_display()
- 5.3 og_panels.module \og_panels_get_one_by_display()
- 5.7 og_panels.module \og_panels_get_one_by_display()
Load an og_panels object.
Parameters
int $did:
Return value
object $og_panel
2 calls to og_panels_get_one_by_display()
- og_panels_form in modules/
og_panels/ og_panels.module - Add/edit an og_panel.
- og_panels_page in modules/
og_panels/ og_panels.module - A menu callback. Renders an og_panel based upon its display ID.
File
- modules/
og_panels/ og_panels.module, line 370
Code
function og_panels_get_one_by_display($did) {
$sql = "SELECT * FROM {og_panels} WHERE did = %d";
$result = db_query($sql, $did);
return db_fetch_object($result);
}