癮科技 Drupal 搞怪技?
http://www.cool3c.com/
James / 神の豚
Nov 19, 2011
http://www.cool3c.com/
James / 神の豚
Nov 19, 2011
Create flag
<?php
preg_match('/\<a[^\>]*\>(.*?)\<\/a\>/i', $title, $matchTitle);
if (mb_strlen($matchTitle[1]) > 10) {
$title = str_replace($matchTitle[1],
mb_substr($matchTitle[1], 0, 10) . '...', $title); }
?>
<div class="view-item view-daman_lastest_comment-item clearfix">
<div class="view-field view-data-uid">
<?php print $node->comments_userpic; ?>
</div>
<div class="view-field-block view-data-data">
<div class="view-field view-data-info">
<?php print $name . ' ' . t('commented') . ' ' . $title; ?>
</div>
<div class="view-field view-data-content">
<?php print filter_xss($comment, array()); ?>
</div>
</div>
</div>










cache_set()
+
cache_get()





include_once './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); drupal_cron_run();

Source: includes/common.inc
Function: drupal_cron_run()
Change this: module_invoke_all('cron');foreach ($cron_list as $function) {
if (function_exists($function)) {
$function(true);
}
}.....