Browse Source

updated to islandora_invoke_hook_list

pull/386/head
Alan Stanley 11 years ago
parent
commit
d6aa4c34f3
  1. 9
      includes/object_properties.form.inc

9
includes/object_properties.form.inc

@ -21,13 +21,10 @@
function islandora_object_properties_form(array $form, array &$form_state, AbstractObject $object) {
drupal_set_title($object->label);
$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();
foreach ($hooks as $hook) {
$temp = module_invoke_all($hook, $object);
if (!empty($temp)) {
$related_objects_pids = array_merge_recursive($related_objects_pids, $temp);
}
if (!empty($temp)) {
$pids_to_restore = array_merge_recursive($related_objects_pids, $temp);
}
return array(
'pid' => array(

Loading…
Cancel
Save