I'm putting together a little plugin that appends a checkbox named 'migration-helper' to the batch-edit form. If checked, the selected items will be modified to copy specific Dublin Core values over to related fields in Item Type metadata. So far, I've been able to add the checkbox but am not entirely sure how to use the items_batch_edit_custom
hook, nor how to modify item type and item type metadata from within a plugin.
class MyPluginNamePlugin extends Omeka_Plugin_AbstractPlugin
{
protected $_hooks = array(
'admin_items_batch_edit_form',
'items_batch_edit_custom'
);
public function hookAdminItemsBatchEditForm(){
require dirname(__FILE__) . '/batch_edit_append.php';
}
public function hookItemsBatchEditCustom(){
// Um...???
}
}
Where can I look to find examples of this hook in use and info about batch editing item records via a plugin?
Thanks!