I realize that individual pagers aren't too complicated, but it would be awesome if I could include them with a feature

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Marc Angles’s picture

Exactly what I'm looking for tonight. +1

Cyberwolf’s picture

Subscribing.

kemsnake’s picture

Status: Active » Needs review
FileSize
865 bytes

i added features support for 7.x version (may be it work for 6.x with few changes)
in custom_paregs.module add

/**
 * Implementation of hook_features_api().
 */
function custom_pagers_features_api()
{
	return array
	(
		'custom_pagers' => array
		(
			'name' => 'Custom pagers',
			'file' => drupal_get_path('module', 'custom_pagers') .'/custom_pagers.features.inc',
			'default_hook' => 'default_custom_pagers',
			'features_source' => TRUE,
		),
	);
}

it is work for me - please review it

13rac1’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Needs work

Can you provide a standard git patch against the current D7 dev? Updating the status to reflect D7 code. Potentially backportable to D6.

jeffschuler’s picture

Status: Needs work » Needs review
FileSize
3.98 KB

Made #3 into a patch; fixed coding standards and added minimal function docs.
Working well for me so far; thanks @kemsnake!

jeffschuler’s picture

Re-rolled relative to module dir.

steveoliver’s picture

Status: Needs review » Active

Nice. The only issue I see is with the numeric pager IDs.. I haven't been in Custom Pagers issues much to know about how everyone feels about implementing IDs based on the pager names or other UUIDs, but if I export my pager (pid 1), and enable this feature module on a site with other existing pagers, the existing custom pager with id 1 is overwritten.

eloivaque’s picture

#6 it's work form me.