You are here

function _facebook_pull_render_block in Facebook Pull 7.2

Same name and namespace in other branches
  1. 6 facebook_pull.module \_facebook_pull_render_block()
  2. 7.3 facebook_pull.module \_facebook_pull_render_block()
  3. 7 facebook_pull.module \_facebook_pull_render_block()

Render a single block using the configured settings.

1 call to _facebook_pull_render_block()
facebook_pull_block_view in ./facebook_pull.module
Implementation of hook_block_view().

File

./facebook_pull.module, line 313
Default cache time.

Code

function _facebook_pull_render_block() {
  global $language;
  $app_id = variable_get('facebook_pull_app_id', '');
  $app_secret = variable_get('facebook_pull_app_secret', '');
  $graph_id = variable_get('facebook_pull_graph_id', '');
  $type = variable_get('facebook_pull_object_type', '');
  $limit = variable_get('facebook_pull_limit', '');
  $options = array(
    'limit' => $limit,
    'locale' => $language->language,
  );
  return facebook_pull_render($graph_id, $type, $app_id, $app_secret, $options);
}