I'm trying to create a new plugin argument that can take a Node's URL instead of just the NID.

I'm using the following file as a template:

/sites/all/modules/ctools/plugins/arguments/nid.inc

I have copied it and renamed it to:

/sites/all/modules/ctools/plugins/arguments/nidurl.inc

... and started modifying the code. Problem is I don't see my new argument as an option in Panels.
How do I get my new argument to show up in Panels?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

japerry’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
694 bytes

I ran into a similar issue, I noticed around line 452 of plugins.inc, the filename being called was 'entity_id' which was the previous filename of the last loaded plugin.

This causes new arguments to never be called. I removed the check with this patch, so lets see if it tests okay. I was having trouble finding out why that check actually had to be there anymore.

Chris Matthews’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Needs review » Needs work
Issue tags: +Needs reroll

The 4 year old patch to plugins.inc does not apply to the latest ctools 7.x-1.x-dev and if still applicable needs to be rerolled.

Checking patch includes/plugins.inc...
error: while searching for:
  // Iterate through all the plugin .inc files, load them and process the hook
  // that should now be available.
  foreach (array_filter($file_list) as $module => $files) {
    if ($filename) {
      $files = isset($files[$filename]) ? array($filename => $files[$filename]) : array();
    }
    foreach ($files as $file) {
      if (!empty($info['info file'])) {
        // Parse a .info file

error: patch failed: includes/plugins.inc:450
error: includes/plugins.inc: patch does not apply
shubham.prakash’s picture

Status: Needs work » Needs review
FileSize
629 bytes
MustangGB’s picture

Category: Support request » Bug report