private static function isAction($type, $sub_type) {
    if ( ($type === 'content' && in_array($sub_type, array('create', 'create upload', 'update', 'update upload', 'upgrade', 'delete'))) ||
         ($type === 'library' && in_array($sub_type, array('create', 'update'))) ) {
      return TRUE; // Log actions
    }
    return FALSE;
  }
private static function isAction($type, $sub_type) {
    if ( ($type === 'content' && in_array($sub_type, array('create', 'create upload', 'update', 'update upload', 'upgrade', 'delete'))) ||
         ($type === 'library' && in_array($sub_type, array('create', 'update'))) ) {
      return TRUE; // Log actions
    }
    return FALSE;
  }
private static function isAction ( $ type , $ sub_type ) { if ( ( $ type === 'content' && in_array ( $ sub_type , array ( 'create' , 'create upload' , 'update' , 'update upload' , 'upgrade' , 'delete' ) ) ) || ( $ type === 'library' && in_array ( $ sub_type , array ( 'create' , 'update' ) ) ) ) { return TRUE ; // Log actions } return FALSE ; }
Check if event type is an action.

@param string $type
Name of event type
@param string $sub_type
Name of event sub type
@return boolean
Check if event type is an action .