I added the Linkit module as part of an installation profile but ran into some problems. It displays an depencies error during
the installation process. See attached screenshot.

CommentFileSizeAuthor
linkit-ip.jpg26.69 KBpeter törnstrand

Comments

peter törnstrand’s picture

Perhaps I should mention that the module Pathologic is also part of the installation profile and is enabled before linkit in the .profile's hook_profile_modules().

anon’s picture

Version: 6.x-1.6 » 6.x-1.x-dev
Status: Active » Fixed
peter törnstrand’s picture

Status: Fixed » Active

I'm sorry. That does not solve my problem. I can't finish an installation profile containing LinkIt module. The dependency errors causes the installation procedure to abort.

anon’s picture

There is no longer any dependences for Linkit Core so that should work.

I just (23:30 GMT +1) commited the chagned files so the dev version isnt updated yet I think.

anon’s picture

If you what to try it out right now.

Change linkit.install

Repalce the hole linkit_requirements with this.

/**
 * Implementation of hook_requirements().
 */
function linkit_requirements($phase) {
  $requirements = array();
  $t = get_t();

  switch ($phase) {
  case 'runtime':
    if (!module_exists('pathfilter') && !module_exists('pathologic')) {
      $severity = REQUIREMENT_ERROR; 
      $value = t('Please install pathfilter <strong>OR</strong> pathologic');
    }
    else {
      $severity = REQUIREMENT_OK; 
      $value = t('Ok');
    }
    $requirements['linkit_dependencies'] = array(
        'title' => $t('Linkit'),
        'severity' => $severity,
        'value' => $value,
        'description' =>  t('To parse "internal:" links <a href="@pathfilter">pathfilter</a> <strong>OR</strong> <a href="@pathologic">pathologic</a> most be installed.', array(
          '@pathfilter' => 'http://drupal.org/project/pathfilter',
          '@pathologic' => 'http://drupal.org/project/pathologic'
        )),
      );
    break;
  }
  return $requirements;
}
peter törnstrand’s picture

Ahh.. ok. Thank you!

anon’s picture

Blixxxa, can you confirm that this works for you too?

peter törnstrand’s picture

Confirmed. With the latest DEV-version it works.

anon’s picture

Status: Active » Fixed

Grate! Thanks for testing blixxxa.

anon’s picture

Status: Fixed » Closed (fixed)