}
// Load Events Management Settings data
-/* None - Need to figure out a smooth way to do this.
-*/
$eventsManagementSettings = $wpdb->get_row( "SELECT * FROM ".GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX."management WHERE id = 1", ARRAY_A );
unset($eventsManagementSettings['id']);
$amenities = $Amenities->getList(false);
}
-
if ($event['status']) {
$haveEvent = true;
$eventAdded = true;
} else {
$option = 'add';
$eventAddError = true;
+
+ // Add any recurrence data that may have been submitted
+// if (isset($_REQUEST[''])) {
+// NOT COMPLETED
+// }
+
}
$view = 'edit';
*
* Also note that parameters will be in the context of the main admin controller constructor.
*/
+
+// Add hooksHelp.html file to admin Management hooks output
+add_filter('glm-member-db-admin-management-hooksHelp', function($content) {
+
+ // Read in this plugin/addon hook help file
+ $fname = GLM_MEMBERS_EVENTS_PLUGIN_PATH.'/setup/hooksHelp.html';
+ if (is_file($fname)) {
+ $hooksHelp = file_get_contents($fname);
+ if ($hooksHelp != false) {
+ $content .= $hooksHelp;
+ }
+ }
+ return $content;
+ },
+ 10,
+ 2
+);
+
add_filter( 'glm-member-db-events-get-events', function( $output ){
$events = $this->wpdb->get_results(
"SELECT E.id,E.name,T1.start_time as start
<!-- Hooks Help from glm-member-db-events Add-On -->
-
-/**********************************************************************
- * NOTE: THIS IS A EVENTS FILE - DO NOT USE UNMODIFIED
- *
- * Please change all references to events, Events, or EVENTS to a name
- * appropriate for your new Add-On.
- *
- * This file is used to document hooks provided by this add-on. Content
- * here will be displayed in the "Management" page "Hooks" tab. If
- * there is no content for this page, this file should be omitted.
- *
- * Remove this message before using this file in production!
- **********************************************************************/
-
-
<tr><th colspan="3" class="glm-notice"><p>Events Add-On</p></th></tr>
<tr><th colspan="3">User Permission Hooks</td></tr>