Closed (fixed)
Project:
RRDtool
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
27 May 2010 at 05:11 UTC
Updated:
11 Jun 2010 at 13:10 UTC
It would be cleaner to have rrdtool_drupal_apis() build an array with a call to file_scan_directory. Perhaps when included each file should be verified to have the necessary hook definitions. The result should be stored in a static so that multiple calls to rrdtool_drupal_apis only requires one file scan. For example, there is an include file for the bootstrap, but it doesn't show up in the admin interface because it's not been added to the rrdtool_drupal_apis(), something we'd not have to do if we use a file scan.
...
$includes = drupal_get_path('module', 'rrdtool_drupal') . '/includes';
$apis = file_scan_directory($includes, '/.inc$/');
...
Comments
Comment #1
killes@www.drop.org commentedhttps://drupal.org/project/cvs/740184