Opencase_cases.module is still in broken state
This commit is contained in:
parent
715f5f34c4
commit
06b2409c61
@ -35,14 +35,13 @@ function opencase_cases_theme() {
|
|||||||
'render element' => 'elements',
|
'render element' => 'elements',
|
||||||
'file' => 'oc_case.page.inc',
|
'file' => 'oc_case.page.inc',
|
||||||
'template' => 'oc_case',
|
'template' => 'oc_case',
|
||||||
]
|
],
|
||||||
'oc_case_content_add_list' => [
|
'oc_case_content_add_list' => [
|
||||||
'render element' => 'content',
|
'render element' => 'content',
|
||||||
'variables' => ['content' => NULL],
|
'variables' => ['content' => NULL],
|
||||||
'file' => 'oc_case.page.inc',
|
'file' => 'oc_case.page.inc',
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function opencase_cases_entity_base_field_info($entity_type) {
|
function opencase_cases_entity_base_field_info($entity_type) {
|
||||||
@ -68,11 +67,11 @@ function opencase_cases_entity_base_field_info($entity_type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When creating an activity, it sets the case id from the URL.
|
/* When creating an activity, it sets the case id from the URL.
|
||||||
*/
|
/*/
|
||||||
public static function opencase_cases_default_activity_case_value() {
|
public static function opencase_cases_default_activity_case_value() {
|
||||||
return array(\Drupal::request()->query->get('case_id'));
|
return array(\Drupal::request()->query->get('case_id'));
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation of hook_form_alter()
|
* Implementation of hook_form_alter()
|
||||||
@ -91,11 +90,11 @@ function opencase_cases_form_alter(&$form, &$form_state, $form_id) {
|
|||||||
|
|
||||||
function _opencase_cases_redirect_to_home($form, &$form_state) {
|
function _opencase_cases_redirect_to_home($form, &$form_state) {
|
||||||
$form_state->setRedirect('<front>');
|
$form_state->setRedirect('<front>');
|
||||||
}
|
|
||||||
function _opencase_cases_delete_activity_redirect($form, &$form_state) {
|
function _opencase_cases_delete_activity_redirect($form, &$form_state) {
|
||||||
$case_id = $form_state->getFormObject()->getEntity()->oc_case->target_id;
|
$case_id = $form_state->getFormObject()->getEntity()->oc_case->target_id;
|
||||||
$form_state->setRedirect('entity.oc_case.canonical', ['oc_case' => $case_id]);
|
$form_state->setRedirect('entity.oc_case.canonical', ['oc_case' => $case_id]);
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* Implements hook_theme_suggestions_HOOK().
|
* Implements hook_theme_suggestions_HOOK().
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user