| 1 |
<?php |
<?php |
| 2 |
// $Id: mysite.module,v 1.96 2008/04/27 17:34:47 agentken Exp $ |
// $Id: mysite.module,v 1.97 2008/04/27 18:47:05 agentken Exp $ |
| 3 |
|
|
| 4 |
|
|
| 5 |
/** |
/** |
| 1106 |
// show the add content forms |
// show the add content forms |
| 1107 |
if (!empty($only)) { |
if (!empty($only)) { |
| 1108 |
$max = variable_get('mysite_items', 10); |
$max = variable_get('mysite_items', 10); |
| 1109 |
$result = db_fetch_object(db_query("SELECT COUNT(mid) as count FROM {mysite_data} WHERE uid = %d", $owner->uid)); |
$result = db_fetch_object(db_query("SELECT COUNT(mid) as count FROM {mysite_data} WHERE uid = %d AND page = %d", $owner->uid, $page)); |
| 1110 |
if ($result->count < $max) { |
if ($result->count < $max) { |
| 1111 |
$output .= mysite_content_form($owner, $edit, $only, $page); |
$output .= mysite_content_form($owner, $edit, $only, $page); |
| 1112 |
} |
} |