- 浏览: 73681 次
- 性别:
- 来自: 南阳
最新评论
-
xieyanxy9:
有什么不懂的……
一个有关孔子和子贡的故事: -
Juniorzcy:
还是不对耶
如何重置Drupal 7的用户密码 -
mygodness123321:
没懂
一个有关孔子和子贡的故事:
文章列表
习惯用浏览器记密码,清空cookies后,站点的管理员密码忘了,
尝试了5次,账号被锁定了,于是在一定时间内不能登录了,
这时可以进入到数据库中,清空flood 表,解除锁定,就可以重新进行登录了!
另一个方法就是重置管理员密码:(这里只提供的是drupal7)
重置管理员密码,参考:http://xieyanxy9.iteye.com/admin/blogs/1320266
官网查阅:https://drupal.org/node/1023428
其他版本可以参考这篇文档:https://drupal.org/node/44164#drush
如果你 ...
https://drupal.org/project/potx
这个模块会提取drupal中T()函数的字符串,最终生成.pot文件
下载一个poedit编辑器,可以很方便的翻译站点未翻译的字符
Taxonomy Memu模块
Taxonomy Memu模块用于将Taxonomy items 转成 Memus,
学习中发现Taxonomy Memu 的2个缺点,
1:每次在更新vocabulary 时,对应的Taxonomy Memu 就会重建,
2:如果站点采用多语言,Taxonomy Memu 在重建后,菜单的翻译会不见了
...
不要气馁,凡事都要靠自己,大家都有自己的事情要做,他们没有责任放下自己的时间去教你一些东西,所以你要怀一颗感恩的心,感谢所有帮助过你的同事和朋友们,同时你应该明白你和大家的差距,他们夹着你前进,这是你的荣幸,你是幸运的!
想起前几天听到的一句话:‘只听到“女程序员”几个字就吓死人’,这话真是让人难过,女孩子也是人,做什么工作都一样,只是做这个更辛苦!
hook_field_info(). //使用field_info 定义field基本属性
hook_field_settings() //主要来定义field各种需要的初始化设置变量,还有field的数据结构等
hook_field() //在这里可以对field验证,已经处理field浏览前的数据预处理等
hook_content_is_empty() //根据传递过的field值是否为空,传递给cck,true or false
hook_field_formatter_info() //自定义数据处理formatter 信息。默认为default。多个fie ...
function ajax_example_add_more($form, &$form_state, $no_js_use = FALSE) {
$form['#tree'] = TRUE;
$form['names_fieldset'] = array(
'#type' => 'fieldset',
'#title' => t('People coming to the picnic'),
'#prefix' => '<div id="names-fieldset-wrapper">',
...
function ajax_example_wizard($form, &$form_state, $no_js_use = FALSE) {
$form['#prefix'] = '<div id="wizard-form-wrapper">';
$form['#suffix'] = '</div>';
$form['#tree'] = TRUE; // We want to deal with hierarchical form values.
$step = empty($form_state['storage' ...
function form_example_tutorial_10($form_state) {
// If you are familiar with how browsers handle files, you know that
// enctype="multipart/form-data" is required. Drupal takes care of that, so
// you don't need to include it yourself.
$form['file'] = array(
'#type' => ...
/**
* Implements hook_image_default_styles().
*
*这里会增加新的图片样式,
*/
function image_example_image_default_styles() {
//这个函数返回一个数组(image style中的各个样式),
//key:是机读名称,机读名称的定义是有规范的,为了避免机读名称命名冲突,用模块名开头,例如:‘mymodule_stylename’这种形式定义,由数字,字母和下划线组成(_和-),
$styles = array();
$styles['image_ex ...
function image_example_style_form($form, &$form_state) {
$form['image_example_image_fid'] = array(
'#title' => t('Image'),
'#type' => 'managed_file',
'#upload_validators' => array('file_validate_extensions' => array('jpg png bmp jpeg')), //允许上传文件的类型
'#de ...
让putty(ssh)自动登录
- 博客分类:
- Linux
http://kb.site5.com/shell-access-ssh/how-to-generate-ssh-keys-and-connect-to-your-account-with-putty/#comments
http://hi.baidu.com/felixwang/item/948c7b62cccf96156995e670
EntityFieldQuery()
- 博客分类:
- Drupal7
$query = new \EntityFieldQuery();
$count = $query
->entityCondition('entity_type', 'user')
->entityCondition('bundle', 'user')
->fieldCondition('field_mobile', 'value', $mobile, '=')
->count()
->execute();
if($count > 0){
return ...
https://www.drupal.org/documentation/entity-metadata-wrappers
$user_wrapper = &entity_metadata_wrapper('user', $user);
$status = $user_wrapper->field_status->value(); //取值
array_push($status,'b');
$user_wrapper->field_status->set($status); // set
...
故事每天都有发生,故事让世界更美味……
地铁停了,老头飞快走进来,将手中的提包放在唯一一个空位上,自己却站在门边,老头的举动让我瞬间短路,这是干嘛呢?不一会,一个头发斑白的老太太走进来,老头笑着朝她说,坐那。说着走上前拿过老太手中的包,老太安然的坐下看着窗外,老头又走到门边站着,一切仿佛很平常……
这画面真美,而我就坐在老太对面,老太说,你坐那……
站一路又何妨呢?在上班的路上见到这种温暖不值得吗?