You are here

function theme_fb_autopost_facebook_page in Facebook Autopost 7

Theme implementation for the fb_autopost_facebook_profile render element.

1 theme call to theme_fb_autopost_facebook_page()
_fb_autopost_get_page_options in ./fb_autopost.admin.inc
Helper function to get all the available pages.

File

./fb_autopost.theme.inc, line 78
Theme implementation file for Facebook Autopost

Code

function theme_fb_autopost_facebook_page($variables) {
  drupal_add_css(drupal_get_path('module', 'fb_autopost') . '/fb_autopost.css');
  return theme('image', array(
    'path' => "https://graph.facebook.com/" . $variables['id'] . "/picture?type=square",
    'title' => t('Facebook picture'),
    'alt' => t('Facebook picture'),
    'width' => 30,
    'height' => 30,
  )) . ' ' . $variables['name'] . ' - ' . $variables['category'] . ' (Id: ' . $variables['id'] . ')';
}