https://github.com/kewljuice/civicrm_event_creator
Everything functionally related to creating event(s) via Drupal form API
https://github.com/kewljuice/civicrm_event_creator
Last synced: 2 months ago
JSON representation
Everything functionally related to creating event(s) via Drupal form API
- Host: GitHub
- URL: https://github.com/kewljuice/civicrm_event_creator
- Owner: kewljuice
- Created: 2018-02-13T08:43:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-23T14:21:11.000Z (over 7 years ago)
- Last Synced: 2025-02-02T12:41:20.470Z (4 months ago)
- Language: PHP
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
This is a simple Drupal module to create/edit non active CiviCRM events as a Drupal user. It also provides the 'creator_extend_form_alter' hook to extend the event form.
# Installation
This module and sub-module(s) are installed as any other Drupal module.- with drush:
```drush pm-enable -y civicrm_event_creator```# Usage
- Overview (admin/events/manage)
- Create event (admin/events/create)
- Alter existing event (admin/events/edit/X)
# Permission
Provided in the module is a simple permission "Access Civicrm Event Creator" to access content for this module.
# Extend
- Create new module, in the .module file
```
'textfield',
'#title' => t('Custom 1'),
'#attributes' => ['placeholder' => t('Custom 1'),],
'#required' => TRUE,
'#default_value' => (isset($default['custom_1']) ? $default['custom_1'] : NULL),
];
}/**
* Implements creator_extend_form_submit_alter().
*/
function my_module_creator_extend_form_alter(&$form_state, $params) {
$params['custom_1'] = strtoupper($params['custom_1']);
}
```