You are here

function facebook_album_build_cover_template in Facebook Album 7.3

Same name and namespace in other branches
  1. 7.2 facebook_album.module \facebook_album_build_cover_template()

Build the template for displaying albums with a filtered data set

Parameters

$settings: An array of settings

$albums: An array of albums from the facebook API

Return value

mixed

  • A prebuilt block of html containing all albums
1 call to facebook_album_build_cover_template()
facebook_album_ajax_get_albums_next in ./facebook_album.module
Fetch the next or previous set of cover photos from the specified page ID.

File

./facebook_album.module, line 487

Code

function facebook_album_build_cover_template($settings, $albums) {
  $filtered_content = facebook_album_filter_albums($albums, $settings['albums'], $settings['visibility']);
  return theme('facebook_album_covers', [
    'settings' => $settings,
    'photos' => $filtered_content,
  ]);
}