GetHookDefNames

Description

Returns the list of named hooks associated with records of this type.

This method returns the list of Named hooks. Named hooks (also referred to as record hooks in the DevOps Plan Designer user interface) are special functions used by DevOps Plan form controls to implement specific tasks.

Syntax

Perl


$entitydef->GetHookDefNames(field_def_name); 
Identifier
Description
entitydef
An EntityDef object corresponding to a record type in a schema.
Return value
A reference to an array of strings is returned.

Example

Perl


$sessionObj = $entity->GetSession();

$entityDefObj = $sessionObj->GetEntityDef($entity->GetEntityDefName());



$sessionObj->OutputDebugString("Hooks of
       ".$entityDefObj->GetName());



# List the record type's hooks

$nameList = $entityDefObj->GetHookDefNames();

foreach $hookName (@$nameList)
   {
 $sessionObj->OutputDebugString($hookName);

 }