You are here

function _fb_app_query_by_label in Drupal for Facebook 5.2

Same name and namespace in other branches
  1. 5 fb_app.module \_fb_app_query_by_label()

File

./fb_app.module, line 403
Defines a custom node type that stores a facebook application configuration.

Code

function _fb_app_query_by_label($label) {
  $result = db_query("SELECT fb.*, n.title FROM {fb_app} fb INNER JOIN {node} n ON n.nid=fb.nid WHERE n.status=1 AND fb.label = '%s'", $label);
  return $result;
}