summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/access/string_equal.inc23
1 files changed, 9 insertions, 14 deletions
diff --git a/plugins/access/string_equal.inc b/plugins/access/string_equal.inc
index 976566e..51b15b9 100644
--- a/plugins/access/string_equal.inc
+++ b/plugins/access/string_equal.inc
@@ -6,20 +6,15 @@
* Plugin to provide access control/visibility based on specified context string matching user-specified string
*/
-/**
- * Implementation of hook_ctools_access().
- */
-function ctools_string_equal_ctools_access() {
- return array(
- 'title' => t("String: comparison"),
- 'description' => t('Control access by string match.'),
- 'callback' => 'ctools_string_equal_ctools_access_check',
- 'settings form' => 'ctools_string_equal_ctools_access_settings',
- 'summary' => 'ctools_string_equal_ctools_access_summary',
- 'required context' => new ctools_context_required(t('String'), 'string'),
- 'defaults' => array('operator' => '=', 'value' => '', 'case' => FALSE),
- );
-}
+$plugin = array(
+ 'title' => t("String: comparison"),
+ 'description' => t('Control access by string match.'),
+ 'callback' => 'ctools_string_equal_ctools_access_check',
+ 'settings form' => 'ctools_string_equal_ctools_access_settings',
+ 'summary' => 'ctools_string_equal_ctools_access_summary',
+ 'required context' => new ctools_context_required(t('String'), 'string'),
+ 'defaults' => array('operator' => '=', 'value' => '', 'case' => FALSE),
+);
/**
* Settings form