Skip to content

Instantly share code, notes, and snippets.

@jeremyboggs
Created November 6, 2012 16:44
Show Gist options
  • Save jeremyboggs/4025916 to your computer and use it in GitHub Desktop.
Save jeremyboggs/4025916 to your computer and use it in GitHub Desktop.
Remove a form element in Omeka
<?php
add_filter(array('ElementForm', 'Item', 'Dublin Core', 'Title'), 'remove_form_item_title');
function remove_form_item_title($components, $args) {
$components['html'] = ''; // Set the html component to an empty string.
return $components;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment