You are here

static function MigratePhoneFieldHandler::arguments in Phone 7.2

Arguments for a phone field migration.

Parameters

string $countrycode: The countrycode for a number.

string $numbertype: The number type for a number.

string $extension: The extension for a number.

string $language: Language of the text (defaults to destination language).

Return value

array An array of all the arguments.

File

./phone.migrate.inc, line 66
Support for migrate module.

Class

MigratePhoneFieldHandler
Migration class for phone fields.

Code

static function arguments($countrycode = NULL, $numbertype = NULL, $extension = NULL, $language = NULL) {
  $arguments = array();
  foreach (array(
    'countrycode',
    'numbertype',
    'extension',
    'language',
  ) as $field) {
    if (isset(${$field})) {
      $arguments[$field] = ${$field};
    }
  }
  return $arguments;
}