function role_expire_feeds_processor_targets_alter in Role Expire 7
Implementation of hook_feeds_node_processor_targets_alter().
File
- ./
role_expire.module, line 705 - Role Expire module
Code
function role_expire_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_name) {
global $user;
$roles = user_roles();
foreach ($roles as $rid => $rname) {
if ($entity_type == 'user') {
$targets['role_expire_' . $rid] = array(
'name' => t('Role expire date (' . $rname . ')'),
'description' => t("Expire date for role " . $rname),
'callback' => 'role_expire_set_target',
);
}
}
}