You are here

function hook_icon_PROVIDER_import_validate in Icon API 8

Same name and namespace in other branches
  1. 7 icon.api.php \hook_icon_PROVIDER_import_validate()

Validate callback for 'hook_icon_PROVIDER_import_process'.

Must return TRUE to claim bundle.

See also

icon_provider_import_form_validate()

File

./icon.api.php, line 272
icon.api.php Hooks and form elements provided by the Icon API module.

Code

function hook_icon_PROVIDER_import_validate($bundle) {
  if ($bundle['condition'] === 'condition_met') {
    return TRUE;
  }
  $provider = icon_provider_load($bundle['provider']);
  return t('Invalid %provider bundle.', array(
    '%provider' => $provider['title'],
  ));
}