Skip to content

Instantly share code, notes, and snippets.

@lsolesen
Created June 5, 2014 15:11
Show Gist options
  • Select an option

  • Save lsolesen/0f62f1c8e7a472896b86 to your computer and use it in GitHub Desktop.

Select an option

Save lsolesen/0f62f1c8e7a472896b86 to your computer and use it in GitHub Desktop.
<?php
/**
* @file
*/
/**
* Plugin definition.
*/
$plugin = array(
'vih_link_button' => array(
'title' => t('Button'),
'description' => t('Render links list as buttons'),
'render pane' => 'vih_plugins_link_render_pane',
),
);
/**
* Render callback
*
* @ingroup themable
*/
function theme_vih_plugins_link_render_pane($vars) {
$settings = $vars['settings'];
$content = $vars['content'];
return 'ready to be styled as buttons?';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment