function fe_nodequeue_queue_features_export_options in Features Extra 6
Implementation of hook_features_export_options().
File
- ./
fe_nodequeue.module, line 23
Code
function fe_nodequeue_queue_features_export_options() {
$table = 'fe_nodequeue_queue';
$options = array();
// Defaults.
$schema = ctools_export_get_schema($table);
$export = $schema['export'];
$defaults = _ctools_export_get_defaults($table, $export);
foreach ($defaults as $obj) {
$options[$obj->machine_name] = t('@name [@machine_name]', array(
'@name' => $obj->title,
'@machine_name' => $obj->machine_name,
));
}
// Normals.
$query = "SELECT * FROM {{$table}} {$table} INNER JOIN {nodequeue_queue} v ON v.qid = {$table}.qid ORDER BY v.qid ASC";
$result = db_query($query);
while ($obj = db_fetch_object($result)) {
$options[$obj->machine_name] = t('@name [@machine_name]', array(
'@name' => $obj->title,
'@machine_name' => $obj->machine_name,
));
}
ksort($options);
return $options;
}