You are here

function facebookshare_theme in Facebook Share 7

Same name and namespace in other branches
  1. 8 facebookshare.module \facebookshare_theme()
  2. 6.3 facebookshare.module \facebookshare_theme()
  3. 6 facebookshare.module \facebookshare_theme()

Implements hook_theme()

File

./facebookshare.module, line 99
Adds a button to a node to share on a user's Facebook stream

Code

function facebookshare_theme($existing, $type, $theme, $path) {
  return array(
    'facebookshare' => array(
      'variables' => array(
        'url' => NULL,
      ),
    ),
    'facebookshare_button' => array(
      'variables' => array(
        'url' => NULL,
        'size' => NULL,
        'text' => NULL,
      ),
    ),
  );
}