This repository has been archived by the owner on Jan 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
2,929 additions
and
1,112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Admin settings for culturefeed_agenda. | ||
*/ | ||
|
||
/** | ||
* General settings for culturefeed_agenda. | ||
*/ | ||
function culturefeed_agenda_admin_settings_form() { | ||
|
||
$form = array(); | ||
|
||
$form['culturefeed_agenda_active_entity_types'] = array( | ||
'#title' => t('Entity types to be searched'), | ||
'#type' => 'checkboxes', | ||
'#options' => culturefeed_agenda_known_entity_types(), | ||
'#default_value' => variable_get('culturefeed_agenda_active_entity_types', array('event', 'production')), | ||
'#description' => t('Select the different entity types that can be shown on agenda/search'), | ||
); | ||
|
||
$form = system_settings_form($form); | ||
$form['#submit'] = array('culturefeed_agenda_admin_settings_form_submit'); | ||
|
||
return $form; | ||
|
||
} | ||
|
||
/** | ||
* Submit the settings form. | ||
*/ | ||
function culturefeed_agenda_admin_settings_form_submit($form, $form_state) { | ||
|
||
$form_state['values']['culturefeed_agenda_active_entity_types'] = array_filter($form_state['values']['culturefeed_agenda_active_entity_types']); | ||
system_settings_form_submit($form, $form_state); | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.