Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @file
- * Plugin to provide access control based on drupal_is_front_page.
- */
- /**
- * Plugins are described by creating a $plugin array which will be used
- * by the system that includes this file.
- */
- $plugin = array(
- 'title' => t('Pager Active'),
- 'description' => t('The pager is active.'),
- 'callback' => 'ctools_pager_ctools_access_check',
- 'default' => array('negate' => 0),
- 'settings form' => 'ctools_pager_ctools_access_settings',
- 'summary' => 'ctools_pager_ctools_access_summary',
- );
- /**
- * Settings form for the 'by parent term' access plugin
- */
- function ctools_pager_ctools_access_settings($form, &$form_state, $conf) {
- // No additional configuration necessary.
- return $form;
- }
- /**
- * Check for access.
- */
- function ctools_pager_ctools_access_check($conf, $context) {
- return (isset($_GET['pager'])) ? TRUE : FALSE;
- }
- /**
- * Provide a summary description based upon the checked terms.
- */
- function ctools_pager_ctools_access_summary($conf, $context) {
- return t('Pager Active');
- }
Advertisement
Add Comment
Please, Sign In to add comment