You are here

function fblikebutton_block_configure in Facebook Like Button 7.2

Same name and namespace in other branches
  1. 7 fblikebutton.module \fblikebutton_block_configure()

Implementation of hook_block_configure().

File

./fblikebutton.module, line 147
Adds Facebook's "Like" button to each selected node type. Adds a block with a global static value where users can "Like" the URL set by admins.

Code

function fblikebutton_block_configure($delta = '') {
  global $base_url;
  $form = array();
  if ($delta == 'fblikebutton_static_block') {
    $form['fblikebutton_static_block'] = array(
      '#type' => 'fieldset',
      '#title' => t('Static FB Like button block'),
      '#collapsible' => FALSE,
    );
    $form['fblikebutton_static_block']['fblikebutton_static_config'] = array(
      '#markup' => '<p>' . t('To configure the URL and the appearance of the button go to the ' . l(t('static Like button settings'), 'admin/config/fblikebutton/static') . '. Make sure you set the right permissions on the ' . l(t('permissions page'), 'admin/people/permissions') . '.</p>'),
    );
  }
  if ($delta == 'fblikebutton_dynamic_block') {
    $form['fblikebutton_dynamic_block'] = array(
      '#type' => 'fieldset',
      '#title' => t('Dynamic FB Like button block'),
      '#collapsible' => FALSE,
    );
    $form['fblikebutton_dynamic_block']['fblikebutton_dynamic_config'] = array(
      '#markup' => '<p>' . t('To configure the visibility and the appearance of the button go to the ' . l(t('dynamic Like button settings'), 'admin/config/fblikebutton/dynamic') . '. You can enhance the visibility settings by using the settings on this page. Make sure you set the right permissions on the ' . l(t('permissions page'), 'admin/people/permissions') . '.</p>'),
    );
  }
  return $form;
}