You are here

function og_panels_get_one_by_display in Organic groups 5.3

Same name and namespace in other branches
  1. 5.8 og_panels.module \og_panels_get_one_by_display()
  2. 5 og_panels.module \og_panels_get_one_by_display()
  3. 5.7 og_panels.module \og_panels_get_one_by_display()
  4. 6 modules/og_panels/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 ./og_panels.module
Add/edit an og_panel.
og_panels_page in ./og_panels.module
A menu callback. Renders an og_panel based upon its display ID.

File

./og_panels.module, line 372

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);
}