You are here

function fb_feed_get_template_options in Drupal for Facebook 5.2

2 calls to fb_feed_get_template_options()
fb_feed_action_publish_form in ./fb_feed.module
fb_feed_action_show_dialog_form in ./fb_feed.module

File

./fb_feed.module, line 672
Helpers for Facebook feeds (http://wiki.developers.facebook.com/index.php/New_Design_Feed_Wall)

Code

function fb_feed_get_template_options() {
  $options = array(
    0 => t('<please choose>'),
  );
  $result = db_query(db_rewrite_sql("SELECT DISTINCT n.nid, n.title FROM {node} n WHERE n.type='%s' AND n.status=1"), FB_FEED_NODE_TYPE_TEMPLATE);
  while ($data = db_fetch_object($result)) {
    $options[$data->nid] = $data->title;
  }
  return $options;
}