Created
March 28, 2013 15:24
-
-
Save Cyberschorsch/5264038 to your computer and use it in GitHub Desktop.
Views Argument Default Flag Handler - RAW
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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