Commit 93f66c06 authored by Dries's avatar Dries

- added nodified story module: story extends node
- removed includes/story.inc as we no longer need it: story.module
  is *really* modular now.
parent a9222fe2
<?php
class Story {
function Story($userid, $subject, $abstract, $article, $section, $timestamp) {
$this->userid = $userid;
$this->subject = $subject;
$this->abstract = $abstract;
$this->article = $article;
$this->section = $section;
$this->timestamp = $timestamp;
}
}
function story_visible($story) {
global $user;
return ($story->status == 2) || ($story->status == 1 && $user->id) || user_access($user, "story");
}
?>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment