Skip to content

Instantly share code, notes, and snippets.

@Cyberschorsch
Last active December 15, 2015 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cyberschorsch/5264010 to your computer and use it in GitHub Desktop.
Save Cyberschorsch/5264010 to your computer and use it in GitHub Desktop.
hook_views_plugins().
<?php
/**
* Implements hook_views_plugins().
*/
function views_flag_context_views_plugins() {
$plugin = array(
'argument default' => array(
'views_argument_default_flag' => array(
'title' => t('Default Flags'),
'handler' => 'views_argument_default_flag',
'path' => drupal_get_path('module', 'views_flag_context') . '/handlers',
),
),
);
return $plugin;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment