Browse Source

Cleaned up syntax

pull/593/head
Kylea Jackson 10 years ago
parent
commit
58c6174d28
  1. 23
      islandora.api.php

23
islandora.api.php

@ -245,7 +245,7 @@ function hook_cmodel_pid_islandora_object_ingested(AbstractObject $object) {
* modifications, where as manipulating an object's datstreams are not. * modifications, where as manipulating an object's datstreams are not.
* *
* @param AbstractObject $object * @param AbstractObject $object
* The object that was modified. * The object that was ingested.
* *
* @todo We should also include what changes were made in a additional * @todo We should also include what changes were made in a additional
* parameter. * parameter.
@ -254,7 +254,7 @@ function hook_islandora_object_modified(AbstractObject $object) {
} }
/** /**
* Notify modules that the given object was modified. * Notify modules that the given object was ingested.
* *
* @see hook_islandora_object_modified() * @see hook_islandora_object_modified()
*/ */
@ -361,22 +361,9 @@ function hook_cmodel_pid_islandora_datastream_purged(AbstractObject $object, $ds
* @param AbstractObject $object * @param AbstractObject $object
* The object to check. * The object to check.
* @param string $dsid * @param string $dsid
* A string indicating the datastream for which to get the registry. * todo
*
* @return array
* An array of associative arrays, each mapping:
* - name: A string containg a human-readable name for the entry.
* - url: A string containing the URL to which to the user will be routed.
*/ */
function hook_islandora_edit_datastream_registry($object, $dsid) { function hook_islandora_edit_datastream_registry($object, $dsid) {
$routes = array();
$routes[] = array(
'name' => t('My Awesome Edit Route'),
'url' => "go/edit/here/{$object->id}/{$dsid}",
);
return $routes;
} }
/** /**
@ -614,7 +601,7 @@ function hook_cmodel_pid_islandora_overview_object(AbstractObject $object) {
* Lets one alter the overview tab in object management. * Lets one alter the overview tab in object management.
*/ */
function hook_islandora_overview_object_alter(AbstractObject &$object, &$output) { function hook_islandora_overview_object_alter(AbstractObject &$object, &$output) {
$output = $output . drupal_render(drupal_get_form('some_form', $object))); $output = $output . drupal_render(drupal_get_form('some_form', $object));
} }
/** /**
@ -628,7 +615,7 @@ function hook_cmodel_pid_islandora_overview_object_alter(AbstractObject &$object
'#type' => 'item', '#type' => 'item',
'#markup' => $view, '#markup' => $view,
); );
$output = $output . $form . drupal_render(drupal_get_form('some_form', $object))); $output = $output . $form . drupal_render(drupal_get_form('some_form', $object));
} }
/** /**

Loading…
Cancel
Save