You are here

function fb_likebox_theme in Facebook Page Plugin 6.2

Same name and namespace in other branches
  1. 8.2 fb_likebox.module \fb_likebox_theme()
  2. 8 fb_likebox.module \fb_likebox_theme()
  3. 6 fb_likebox.module \fb_likebox_theme()
  4. 7 fb_likebox.module \fb_likebox_theme()

Implements hook_theme().

File

./fb_likebox.module, line 110
Simple module that provides a configurable block with Facebook Likebox's plugin.

Code

function fb_likebox_theme($existing, $type, $theme, $path) {
  return array(
    'fb_likebox_facebook' => array(
      'arguments' => array(
        'fb_likebox_url' => variable_get('fb_likebox_url', 'https://www.facebook.com/FacebookDevelopers'),
        'fb_likebox_hide_header' => variable_get('fb_likebox_hide_header', '0'),
        'fb_likebox_stream' => variable_get('fb_likebox_stream', '0'),
        'fb_likebox_show_faces' => variable_get('fb_likebox_show_faces', '1'),
        'fb_likebox_width' => variable_get('fb_likebox_width', '340'),
        'fb_likebox_height' => variable_get('fb_likebox_height', '500'),
        'fb_likebox_title' => variable_get('fb_likebox_title', 'Like us on Facebook'),
      ),
      'path' => $path . '/templates',
      'template' => 'fb_likebox',
    ),
  );
}