This is the function which this asset calls.
I have copied this function from Mysource
cms/page-templates/custom_form asset folder
to learn how asset is made
function redirectToFormContents(&$asset, &$o, $prefix)
{
// get the bodycopy attached to us
$form = $asset->getForm();
if (is_null($form)) {
trigger_localised_error('CMS0022', E_USER_ERROR, $asset->name, $asset->id, 'Contents');
return FALSE;
}
// redirect to the bodycopy's edit contents screen
$o->setRedirect($form->getBackendHref('contents'));
// fudge the navigation history a little so when they click on the link to ger back to the
// page it doesnt take them to the edit contents screen and then redirect them again
$_SESSION['sq_nav_history'][(count($_SESSION['sq_nav_history']) - 1)]['screen'] = 'details';
return FALSE;
}//end Now i want to know what is
1)$asset variable
2) Where is getForm function defined
Where is processFunction which submits this page.
this is xml file
i want to just echo hello when someone click on commit.
Please help