function _facebook_pull_render_block in Facebook Pull 7.3
Same name and namespace in other branches
- 6 facebook_pull.module \_facebook_pull_render_block()
- 7 facebook_pull.module \_facebook_pull_render_block()
- 7.2 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 - Implements hook_block_view().
File
- ./
facebook_pull.module, line 340 - Facebook Pull Module for getting content from Facebook graph.
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', '');
$fields = implode(',', array_filter(variable_get('facebook_pull_fields', _facebook_pull_default_options())));
$options = array(
'limit' => $limit,
'locale' => $language->language,
'fields' => $fields,
);
return facebook_pull_render($graph_id, $type, $app_id, $app_secret, $options);
}