function oa_core_form_views_content_views_panes_content_type_edit_process in Open Atrium Core 7.2
Only way I figured out to change the #ajax of this w/o changing the weight. Can't hook_form_alter cause go before panopoly_magic and panopoly_magic does module implements alter and puts itself last. Argh!
1 string reference to 'oa_core_form_views_content_views_panes_content_type_edit_process'
File
- ./
oa_core.module, line 1287
Code
function oa_core_form_views_content_views_panes_content_type_edit_process($element, &$form_state) {
if (isset($form_state['complete form']['content_settings']['view_mode']['#default_value']) && !in_array($form_state['complete form']['content_settings']['view_mode']['#default_value'], array_keys($form_state['complete form']['content_settings']['view_mode']['#options']))) {
// In Recent Activity view, Message entities do not have a "teaser" view, which is the
// default view_mode. So set the view_mode to the first available option (full)
// to avoid "Illegal choice" errors
$form_state['complete form']['content_settings']['view_mode']['#default_value'] = current(array_keys($form_state['complete form']['content_settings']['view_mode']['#options']));
}
if (isset($element['preview']['#ajax'])) {
$element['preview']['#ajax']['callback'] = 'oa_core_refresh_oa_section_ref_target_id';
}
return $element;
}