Browse Source

Rdfx and field_permissions et al. Reworked dependencies.

7.x-2.x
Daniel Lamb 10 years ago
parent
commit
8698a473fa
  1. 5
      islandora/islandora.info
  2. 18
      islandora/islandora.install
  3. 23
      islandora_collection/islandora_collection.module

5
islandora/islandora.info

@ -4,6 +4,11 @@ package = Islandora
version = 7.x-dev
core = 7.x
dependencies[] = rest_server
dependencies[] = field_permissions
dependencies[] = field_readonly
dependencies[] = uuid_services
dependencies[] = views_ui
dependencies[] = rdfui
dependencies[] = xml_field
dependencies[] = xpath_field
dependencies[] = islandora_dcterms

18
islandora/islandora.install

@ -22,4 +22,22 @@ function islandora_install() {
'type' => 'xml_field_xml',
);
field_create_field($mods_field);
$fedora_path_field = array(
'field_name' => ISLANDORA_FEDORA_PATH_FIELD,
'type' => 'text',
);
field_create_field($fedora_path_field);
$fedora_has_parent_field = array(
'field_name' => ISLANDORA_FEDORA_HAS_PARENT_FIELD,
'type' => 'text',
);
field_create_field($fedora_has_parent_field);
$pcdm_has_member_field = array(
'field_name' => ISLANDORA_PCDM_HAS_MEMBER_FIELD,
'type' => 'text',
);
field_create_field($pcdm_has_member_field);
}

23
islandora_collection/islandora_collection.module

@ -42,3 +42,26 @@ function islandora_collection_node_info() {
function islandora_collection_form($node, array &$form_state) {
return node_content_form($node, $form_state);
}
/**
* Implements hook_insert().
*/
function islandora_collection_insert($node) {
/*
if (isset($_SERVER['HTTP_IGNORE_HOOKS']) && strcmp(strtolower($_SERVER['HTTP_IGNORE_HOOKS']), "true") == 0) {
dd("IGNORING SAVING THE COLLECTION");
}
dd("SAVING A COLLECTION");
dd($node);
*/
}
function islandora_collection_update($node) {
/*
if (isset($_SERVER['HTTP_IGNORE_HOOKS']) && strcmp(strtolower($_SERVER['HTTP_IGNORE_HOOKS']), "true") == 0) {
dd("IGNORING UPDATING THE COLLECTION");
}
dd("UPDATING A COLLECTION");
dd($node);
*/
}

Loading…
Cancel
Save