boxes.inc in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.2
Same filename and directory in other branches
Boxes module integration.
File
includes/boxes.incView source
<?php
/**
* @file
* Boxes module integration.
*/
/**
* Implementation of hook_default_box()
*/
function sexybookmarks_default_box() {
$boxs = array();
$box = new stdClass();
$box->disabled = FALSE;
/* Edit this to true to make a default box disabled initially */
$box->api_version = 1;
$box->delta = 'example_sexybookmarks';
$box->plugin_key = 'simple';
$box->title = 'Example: SexyBookmarks';
$box->description = 'Example: SexyBookmarks';
$box->options = array(
'body' => '<?php
$profile = \'default\';
$url = url(\'<front>\', array(\'absolute\' => TRUE));
$title = variable_get(\'site_name\', \'Drupal\');
print theme(\'sexybookmarks\', array(
\'profile\' => $profile,
\'url\' => $url,
\'title\' => $title,
\'id\' => \'block-sexybookmarks-example\',
));
?>',
'format' => '3',
);
$boxs['example_sexybookmarks'] = $box;
return $boxs;
}
Functions
Name | Description |
---|---|
sexybookmarks_default_box | Implementation of hook_default_box() |