5 * Plugin to provide access control based on drupal_is_front_page.
9 * Plugins are described by creating a $plugin array which will be used
10 * by the system that includes this file.
13 'title' => t('Front page'),
14 'description' => t('Is this the front page.'),
15 'callback' => 'ctools_front_ctools_access_check',
16 'default' => array('negate' => 0),
17 'settings form' => 'ctools_front_ctools_access_settings',
18 'summary' => 'ctools_front_ctools_access_summary',
22 * Settings form for the 'by parent term' access plugin
24 function ctools_front_ctools_access_settings($form, &$form_state, $conf) {
25 // No additional configuration necessary.
32 function ctools_front_ctools_access_check($conf, $context) {
33 if (drupal_is_front_page()) {
42 * Provide a summary description based upon the checked terms.
44 function ctools_front_ctools_access_summary($conf, $context) {
45 return t('The front page');