The hook_migrate_api docs need updating for the expanded return value as of 2.6 -- groups and so on.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim’s picture

One thing that should be mentioned is that in the 'migrations' part of the array, the array for a given migration corresponds to the $arguments array that is passed to Migration::registerMigration(), with the exception of the class_name:

    'migrations' => array(
      'MyMigration' => array(
        'class_name' => 'MyMigrationMigration',
        // Rest of this array goes to registerMigration() as the $arguments:
        'group_name' => 'my_group',
        'dependencies' => array(
          'MyOtherMigration',
        ),
      ),
    ),
mikeryan’s picture

Category: Bug report » Task
Status: Active » Postponed (maintainer needs more info)

I've added a note about the argument passing, as well as a pointer to the disable_hooks doc, to https://drupal.org/node/1824884 - anything else you see missing?

Thanks.

joachim’s picture

I think I was thinking of the docs in the api.php file as well -- IIRC that doesn't have a @return documented.

mikeryan’s picture

Assigned: Unassigned » mikeryan
Status: Postponed (maintainer needs more info) » Needs review
FileSize
3.86 KB

How does this look?

mikeryan’s picture

Status: Needs review » Fixed
Issue tags: +Migrate 2.6

Committed.

  • Commit 3e4028c on 7.x-2.x by mikeryan:
    Issue #2212819 by mikeryan: Update sample API for 2.6 changes
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.