跳转到主要内容
learningxm 提交于 5 October 2014
<?php global $user; if($user->uid){ $user_check = db_select('users','u')->fields('u',array('mail'))->condition('u.uid', $user->uid)->execute()->fetchAssoc(); $user_email = $user_check['mail']; $user_arg = arg(0); $location_path =url('user/'.$user->uid.'/edit', array('absolute' => TRUE)); if(empty($user_email) && $user_arg!="user"){ ?><?php drupal_add_js("jQuery(document).ready(function () { if(confirm('请尽快填写您的邮箱信息')){ window.location.href='$location_path'; }else{ return false; } }); ", 'inline');?><?php } } ?>
articles