Skip to content

Instantly share code, notes, and snippets.

@bdombro
Last active December 28, 2015 04:09
Show Gist options
  • Save bdombro/7439987 to your computer and use it in GitHub Desktop.
Save bdombro/7439987 to your computer and use it in GitHub Desktop.
Alias question for frank
<?php
$params = array(
'body' => $reach->img_shortcodes . $reach->description . "\n\n" .
$reach->shuttledetails . "\n\n" . $reach->gaugeinfo,
'fields' => array(
'legacy_id' => array(
'type' => 'text',
'value' => array(
$reach->reach_id,
),
),
),
'format' => 'filtered_html',
'log' => 'Imported from legacy Postgres database (table: reaches) on ' . date('Y-m-d'),
'path' => array('alias' => "content/River/detail/id/{$reach->reach_id}"),
'title' => $reach->name,
'type' => 'river_section',
'uid' => $uid,
);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment