Skip to content

Instantly share code, notes, and snippets.

@Cyberschorsch
Created March 28, 2013 15:24
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/5264038 to your computer and use it in GitHub Desktop.
Save Cyberschorsch/5264038 to your computer and use it in GitHub Desktop.
Views Argument Default Flag Handler - RAW
<?php
/**
* Define the options form to enable selection of flags.
*/
function options_form(&$form, &$form_state) {
}
/**
* Return all possible options for the view and provide default values.
*/
function option_definition() {
}
/**
* Provide the default form form for submitting options.
*/
function options_submit(&$form, &$form_state, &$options = array()) {
}
/**
* This function controls what to return to the contextual filter.
*/
function get_argument() {
}
/**
* Initialize this plugin with the view and the argument is is linked to.
*/
function init(&$view, &$argument, $options) {
parent::init($view, $argument, $options);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment