https://www.drupal.org/sandbox/tk421jag/2451325

git clone --branch 7.x-1.x https://git.drupal.org/sandbox/tk421jag/2451325.git twitter_lite
cd twitter_lite

This module was created out of the need for a basic and easy to setup twitter feed. The Twitter module is great for extending the Twitter API into your site with great features.

However, I wanted a lightweight Twitter feed module that generates a block of feeds. The feeds block is

This module creates two Twitter feed blocks. You can also choose how many tweets to show per block.

UPDATE: 3/13/2015 I've updated this to include a block with a search tweet feed. It can use search terms or hashtags.
UPDATE: 7/21/2016 Revised API error notification. Began work on port to Drupal 8.

Comments

tk421jag created an issue. See original summary.

jasonglisson’s picture

Issue summary: View changes
jasonglisson’s picture

Individual user account
Yes: Follows the guidelines for individual user accounts.
No duplication
Yes: Does not cause module duplication and/or fragmentation.
Master Branch
Yes: Follows the guidelines for master branch.
Licensing
Yes: Follows the licensing requirements.
3rd party assets/code
Yes: Follows the guidelines for 3rd party assets/code.
README.txt/README.md
Yes: Follows the guidelines for in-project documentation and/or the README Template.
Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity.
Secure code
Yes: Meets the security requirements.

PA robot’s picture

Issue summary: View changes
Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpsgitdrupalorgsandboxtk421jag2451325git

Fixed the git clone URL in the issue summary for non-maintainer users.

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

er_abhinav’s picture

Found some issue. Kindily look into it.
1. Class name must be prefixed with project name.

2. Does not qualifies the pareview. Most of the errors are of indentation. Please fix it. Below is the link provided:
http://pareview.sh/pareview/httpsgitdrupalorgsandboxtk421jag2451325git

3. Please follow the coding standard.
https://www.drupal.org/coding-standards

jasonglisson’s picture

Thank you for your help. Yeah I worked on a ton of the indentation errors last night and had no idea that would be a big issue.

I'll work on this now. Thanks!

jasonglisson’s picture

Ok, I've fixed a bunch of indentations, and it looks like all of the errors that were their before are now gone when I scan it.

Let me know if anyone has some time to look over it.

I may need some more specific examples of any parts that need the coding standards fixed if there are any other issues.

THANKS!!!

jasonglisson’s picture

Status: Needs work » Needs review
mepushpendra’s picture

Status: Needs review » Needs work

Hi tk421jag,

I had a quick look at your module and done my bit of review :)

Automated Review:
Automated code review passed.

Manual Review:
1. Use project page template for the project page.
2. Add hook_help in module.
3. Use proper commit messages see the documentation
4. Use standard comments where ever you implement hooks.
Comment should be like
/**
* Implements hook_menu().
*/
5. Use default value with variable_get in function
6. I think you declared function linkify_tweet2() inside another function by mistake at line no. 285 in twitter_lite.module file

Moving back to N/W due to open issues.

gaydamaka’s picture

Issue summary: View changes

Hi

Maybe beter replace:

'#options' => array(
      1 => t('1'),
      2 => t('2'),
      3 => t('3'),
      4 => t('4'),
      5 => t('5'),
      6 => t('6'),
      7 => t('7'),
      8 => t('8'),
      9 => t('9'),
      10 => t('10'),
    ),

to:

'#options' =>  drupal_map_assoc(range(1, 10)),
jasonglisson’s picture

Excellent. Thank you both for your help. I'll work on this stuff.
Thanks again!

jasonglisson’s picture

So a few questions about this....

Manual Review:
1. Use project page template for the project page. I have a project page for this, but I don't know what you mean by using the template.
2. Add hook_help in module. Is this nessecary and required if I have a README file?
3. Use proper commit messages see the documentation Working on this.
4. Use standard comments where ever you implement hooks. This is fixed.
Comment should be like
/**
* Implements hook_menu().
*/
5. Use default value with variable_get in function As far as I can tell, throughout my entire module I'm using variable_get to define default values. Was there somewhere in particular I should look at for this?
6. I think you declared function linkify_tweet2() inside another function by mistake at line no. 285 in twitter_lite.module file I don't see that I did. I declared the function on line 263, and then I'm calling the function on line 285.

jasonglisson’s picture

Status: Needs work » Needs review

I would love it if someone could answer the questions I had on this. Thanks!

jasonglisson’s picture

Anyone?

arun ak’s picture

Status: Needs review » Needs work

Hi tk421jag,

Please see below for answers to your questions:

  1. For project page template refer Project page template.
  2. As per Drupal module documentation guidelines it is necessary to Provide help text in the Drupal UI.

    All but the most trivial modules should implement hook_help().

    Refer Module documentation guidelines.

  3. You should pass default value to the variable_get() function to use value if variable is not set. eg: variable_get('twitter_lite_username', '') Refer variable_get().
  4. linkify_tweet2() function is defined inside twitter_lite_search() function and also the function linkify_tweet2() not using elsewhere in code. Please correct that in your code.
  5. Use module_load_include() instead of require_once() in twitter_lite.module line no 235.

    module_load_include() function does over and above the standard PHP require_once is that it references the module's path when locating the file, using drupal_get_path().

    If you were to use require_once, you would have to do this bit yourself. Refer module_load_include().

Thanks,
ARUN AK

jasonglisson’s picture

EXCELLENT! You've explained this very well.

PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).

I'm a robot and this is an automated message from Project Applications Scraper.