Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Get video for chapter
- *
- * @package tlc
- * @subpackage processors
- */
- /* setup default properties */
- $chapter = $modx->getOption('chapter',$_REQUEST,false);
- /* setup query */
- if (!$chapter) return $modx->error->failure('Chapter not specified.');
- $chapter = $modx->getObject('tlcChapter',$chapter);
- if (!$chapter) return $modx->error->failure('Chapter not found!');
- return $modx->error->success('',$chapter);
Add Comment
Please, Sign In to add comment