adding extension hook in GridFieldDetailForm.php

This hook is useful so that you can add additional fields / actions in a gridfield form that are not available in other settings (e.g. additional actions: previous / next / save and publish / unpublish / etc
This commit is contained in:
Nicolaas 2012-12-27 19:22:54 +13:00
parent f431b35b88
commit a32451f72e

View File

@ -348,7 +348,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler {
$cb = $this->component->getItemEditFormCallback();
if($cb) $cb($form, $this);
$this->extend("updateItemEditForm", $form);
return $form;
}