Registering the provider

As shown in section Screenshots, you have the opportunity to register your provider and add it to the selector of registered providers:

Registered providers

Sample code to be added to your ext_tables.php file:

if (TYPO3_MODE === 'BE') {
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['direct_mail_userfunc']['userFunc'][] = array(
        'class'  => 'yourClass',
        'method' => 'yourMethod',
        'label'  => 'Some Label'
    );
}

This will add a new entry “Some Label” that fills in provider yourClass->yourMethod when selected:

New provider

Tip

  • Parameter label of the registration code supports a localized label definition such as LLL:EXT:direct_mail_userfunc/Resources/Private/Language/locallang.xlf: userfunction.myRecipientList
  • Providers are automatically sorted by label in the selector