|
|
@ -21,13 +21,10 @@ |
|
|
|
function islandora_object_properties_form(array $form, array &$form_state, AbstractObject $object) { |
|
|
|
function islandora_object_properties_form(array $form, array &$form_state, AbstractObject $object) { |
|
|
|
drupal_set_title($object->label); |
|
|
|
drupal_set_title($object->label); |
|
|
|
$form_state['object'] = $object; |
|
|
|
$form_state['object'] = $object; |
|
|
|
$hooks = islandora_build_hook_list(ISLANDORA_UPDATE_RELATED_OBJECTS_PROPERTIES_HOOK, $object->models); |
|
|
|
$temp = islandora_invoke_hook_list(ISLANDORA_UPDATE_RELATED_OBJECTS_PROPERTIES_HOOK, $fedora_object->models, array($fedora_object)); |
|
|
|
$related_objects_pids = array(); |
|
|
|
$related_objects_pids = array(); |
|
|
|
foreach ($hooks as $hook) { |
|
|
|
|
|
|
|
$temp = module_invoke_all($hook, $object); |
|
|
|
|
|
|
|
if (!empty($temp)) { |
|
|
|
if (!empty($temp)) { |
|
|
|
$related_objects_pids = array_merge_recursive($related_objects_pids, $temp); |
|
|
|
$pids_to_restore = array_merge_recursive($related_objects_pids, $temp); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return array( |
|
|
|
return array( |
|
|
|
'pid' => array( |
|
|
|
'pid' => array( |
|
|
|