Skip to content

Instantly share code, notes, and snippets.

@mjordan
Created January 12, 2014 23:01
Show Gist options
  • Save mjordan/8391902 to your computer and use it in GitHub Desktop.
Save mjordan/8391902 to your computer and use it in GitHub Desktop.
hook_islandora_xml_form_builder_forms()
<?php
/**
* This hook allows modules to add default forms to form builder.
*
* @return array
* An associative array mapping unique names to associative arrays containing a
* single key:
* - form_file: A string containing the path to the form definition, relative
* to the webserver's document root (such that I might be opened
*/
function hook_islandora_xml_form_builder_forms() {
return array(
'Unique Form Name' => array(
'form_file' => 'full/path/to/form/definition/file.xml',
),
);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment